11# Downloader
22
3- > Auto-generated documentation for [ sigstickers.downloader] ( ../../../sigstickers/downloader.py ) module.
3+ [ Sigstickers Index] ( ../README.md#sigstickers-index ) /
4+ [ Sigstickers] ( ./index.md#sigstickers ) /
5+ Downloader
46
5- Sticker download and convert functions used by the module entry point .
7+ > Auto-generated documentation for [ sigstickers.downloader ] ( ../../../sigstickers/downloader.py ) module.
68
7- - [ Sigstickers ] ( ../README.md#sigstickers-index ) / [ Modules ] ( ../MODULES.md#sigstickers-modules ) / [ Sigstickers ] ( index.md#sigstickers ) / Downloader
8- - [ assureDirExists] ( #assuredirexists )
9- - [ convertPack] ( #convertpack )
10- - [ convertWithPIL] ( #convertwithpil )
11- - [ downloadPack] ( #downloadpack )
12- - [ saveSticker] ( #savesticker )
9+ - [ Downloader ] ( #downloader )
10+ - [ assureDirExists] ( #assuredirexists )
11+ - [ convertPack] ( #convertpack )
12+ - [ convertWithPIL] ( #convertwithpil )
13+ - [ downloadPack] ( #downloadpack )
14+ - [ saveSticker] ( #savesticker )
1315
1416## assureDirExists
1517
16- [[ find in source code]] ( ../../../sigstickers/downloader.py#L19 )
17-
18- ``` python
19- def assureDirExists (directory : str , root : str ) -> str :
20- ```
18+ [ Show source in downloader.py:19] ( ../../../sigstickers/downloader.py#L19 )
2119
2220Make the dir if not exists
2321
@@ -30,14 +28,19 @@ Make the dir if not exists
3028
3129- ` str ` - the full path
3230
33- ## convertPack
34-
35- [[ find in source code]] ( ../../../sigstickers/downloader.py#L115 )
31+ #### Signature
3632
3733``` python
38- async def convertPack (swd : str , packName : str , noCache = False ):
34+ def assureDirExists (directory : str , root : str ) -> str :
35+ ...
3936```
4037
38+
39+
40+ ## convertPack
41+
42+ [ Show source in downloader.py:112] ( ../../../sigstickers/downloader.py#L112 )
43+
4144Convert the webp images into png and gif images
4245
4346#### Arguments
@@ -46,14 +49,19 @@ Convert the webp images into png and gif images
4649- ` packName ` * str* - name of the sticker pack (for cache + logging)
4750- ` noCache ` * bool, optional* - set to true to disable cache. Defaults to False.
4851
49- ## convertWithPIL
50-
51- [[ find in source code]] ( ../../../sigstickers/downloader.py#L94 )
52+ #### Signature
5253
5354``` python
54- def convertWithPIL (inputFile : str ) -> str :
55+ async def convertPack (swd : str , packName : str , noCache = False ):
56+ ...
5557```
5658
59+
60+
61+ ## convertWithPIL
62+
63+ [ Show source in downloader.py:91] ( ../../../sigstickers/downloader.py#L91 )
64+
5765Convert the webp file to png
5866
5967#### Arguments
@@ -64,18 +72,19 @@ Convert the webp file to png
6472
6573- ` str ` - path to input file
6674
67- ## downloadPack
68-
69- [[ find in source code]] ( ../../../sigstickers/downloader.py#L57 )
75+ #### Signature
7076
7177``` python
72- async def downloadPack (
73- packId : str ,
74- packKey : str ,
75- cwd : str = os.getcwd(),
76- ) -> tuple[str , str ]:
78+ def convertWithPIL (inputFile : str ) -> str :
79+ ...
7780```
7881
82+
83+
84+ ## downloadPack
85+
86+ [ Show source in downloader.py:54] ( ../../../sigstickers/downloader.py#L54 )
87+
7988Download a sticker pack.
8089
8190#### Arguments
@@ -89,14 +98,21 @@ c957a57000626a2dc3cb69bf0e79c91c6b196b74d4d6ca1cbb830d3ad0ad4e36
8998
9099- ` tuple[str, ` * str] * - sticker working directory and pack title
91100
92- ## saveSticker
93-
94- [[ find in source code]] ( ../../../sigstickers/downloader.py#L38 )
101+ #### Signature
95102
96103``` python
97- def saveSticker (sticker : Sticker, path : str ) -> str :
104+ async def downloadPack (
105+ packId : str , packKey : str , cwd : str = os.getcwd()
106+ ) -> tuple[str , str ]:
107+ ...
98108```
99109
110+
111+
112+ ## saveSticker
113+
114+ [ Show source in downloader.py:35] ( ../../../sigstickers/downloader.py#L35 )
115+
100116Save a sticker
101117
102118#### Arguments
@@ -107,3 +123,12 @@ Save a sticker
107123#### Returns
108124
109125- ` str ` - the filepath the file was written to
126+
127+ #### Signature
128+
129+ ``` python
130+ def saveSticker (sticker : Sticker, path : str ) -> str :
131+ ...
132+ ```
133+
134+
0 commit comments