Skip to content

Commit 5595129

Browse files
committed
fhmake build
1 parent 4d5a8f6 commit 5595129

File tree

9 files changed

+198
-143
lines changed

9 files changed

+198
-143
lines changed

documentation/reference/MODULES.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

documentation/reference/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# Tstickers Modules
1+
# Tstickers Index
22

3-
> Auto-generated documentation modules index.
3+
> Auto-generated documentation index.
44
5-
Full list of [Tstickers](README.md#tstickers-index) project modules.
5+
A full list of `Tstickers` project modules.
66

7-
- [Tstickers Index](README.md#tstickers-index)
87
- [Tstickers](tstickers/index.md#tstickers)
98
- [Module](tstickers/module.md#module)
109
- [Caching](tstickers/caching.md#caching)
Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# Caching
22

3+
[Tstickers Index](../README.md#tstickers-index) /
4+
[Tstickers](./index.md#tstickers) /
5+
Caching
6+
37
> Auto-generated documentation for [tstickers.caching](../../../tstickers/caching.py) module.
48
5-
Sticker caching functionality used by the downloader.
9+
#### Attributes
610

7-
- [Tstickers](../README.md#tstickers-index) / [Modules](../MODULES.md#tstickers-modules) / [Tstickers](index.md#tstickers) / Caching
8-
- [createConverted](#createconverted)
9-
- [verifyConverted](#verifyconverted)
11+
- `cachedSession` - requests_cache: `CachedSession('.cache/tstickers.requests.sqlite', backend='sqlite', expire_after=60 * 60 * 12, allowable_codes=(200), allowable_methods=('GET', 'POST'))`
1012

11-
#### Attributes
1213

13-
- `cachedSession` - requests_cache: `CachedSession('.cache/tstickers.requests.sqlite...`
14+
- [Caching](#caching)
15+
- [createConverted](#createconverted)
16+
- [verifyConverted](#verifyconverted)
1417

1518
## createConverted
1619

17-
[[find in source code]](../../../tstickers/caching.py#L60)
18-
19-
```python
20-
def createConverted(packName: str, data: dict):
21-
```
20+
[Show source in caching.py:60](../../../tstickers/caching.py#L60)
2221

2322
Write cache data to a file identified by packName
2423

@@ -27,14 +26,19 @@ Write cache data to a file identified by packName
2726
- `packName` *str* - name of the sticker pack eg. "DonutTheDog"
2827
- `data` *dict* - packName cache data to write to cache
2928

30-
## verifyConverted
31-
32-
[[find in source code]](../../../tstickers/caching.py#L21)
29+
#### Signature
3330

3431
```python
35-
def verifyConverted(packName: str) -> bool:
32+
def createConverted(packName: str, data: dict):
33+
...
3634
```
3735

36+
37+
38+
## verifyConverted
39+
40+
[Show source in caching.py:21](../../../tstickers/caching.py#L21)
41+
3842
Verify the cache for a packName eg. "DonutTheDog". Uses the cache "version"
3943
to call the verify function for that version
4044

@@ -45,3 +49,12 @@ to call the verify function for that version
4549
#### Returns
4650

4751
- `bool` - if the converted cache has been verified
52+
53+
#### Signature
54+
55+
```python
56+
def verifyConverted(packName: str) -> bool:
57+
...
58+
```
59+
60+
Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
# Convert
22

3-
> Auto-generated documentation for [tstickers.convert](../../../tstickers/convert.py) module.
3+
[Tstickers Index](../README.md#tstickers-index) /
4+
[Tstickers](./index.md#tstickers) /
5+
Convert
46

5-
Sticker convert functions used by the downloader.
7+
> Auto-generated documentation for [tstickers.convert](../../../tstickers/convert.py) module.
68
7-
- [Tstickers](../README.md#tstickers-index) / [Modules](../MODULES.md#tstickers-modules) / [Tstickers](index.md#tstickers) / Convert
8-
- [assureDirExists](#assuredirexists)
9-
- [convertTgs](#converttgs)
10-
- [convertWebp](#convertwebp)
11-
- [convertWithPIL](#convertwithpil)
9+
- [Convert](#convert)
10+
- [assureDirExists](#assuredirexists)
11+
- [convertTgs](#converttgs)
12+
- [convertWebp](#convertwebp)
13+
- [convertWithPIL](#convertwithpil)
1214

1315
## assureDirExists
1416

15-
[[find in source code]](../../../tstickers/convert.py#L13)
16-
17-
```python
18-
def assureDirExists(root: Path, directory: Path | str) -> Path:
19-
```
17+
[Show source in convert.py:13](../../../tstickers/convert.py#L13)
2018

2119
make the dir if not exists
2220

@@ -29,19 +27,19 @@ make the dir if not exists
2927

3028
- `Path` - the full path
3129

32-
## convertTgs
33-
34-
[[find in source code]](../../../tstickers/convert.py#L72)
30+
#### Signature
3531

3632
```python
37-
def convertTgs(
38-
swd: Path,
39-
threads: int = 4,
40-
frameSkip: int = 1,
41-
scale: float = 1,
42-
) -> int:
33+
def assureDirExists(root: Path, directory: Path | str) -> Path:
34+
...
4335
```
4436

37+
38+
39+
## convertTgs
40+
41+
[Show source in convert.py:72](../../../tstickers/convert.py#L72)
42+
4543
Convert animated stickers to webp, gif and png
4644

4745
#### Arguments
@@ -57,14 +55,19 @@ for optimisation with a quality trade-off. Defaults to 1.
5755

5856
- `int` - number of stickers successfully converted
5957

60-
## convertWebp
61-
62-
[[find in source code]](../../../tstickers/convert.py#L44)
58+
#### Signature
6359

6460
```python
65-
def convertWebp(swd: Path, threads: int = 4) -> int:
61+
def convertTgs(swd: Path, threads: int = 4, frameSkip: int = 1, scale: float = 1) -> int:
62+
...
6663
```
6764

65+
66+
67+
## convertWebp
68+
69+
[Show source in convert.py:44](../../../tstickers/convert.py#L44)
70+
6871
Convert static stickers to png and gif
6972

7073
#### Arguments
@@ -76,14 +79,19 @@ Convert static stickers to png and gif
7679

7780
- `int` - number of stickers successfully converted
7881

79-
## convertWithPIL
80-
81-
[[find in source code]](../../../tstickers/convert.py#L27)
82+
#### Signature
8283

8384
```python
84-
def convertWithPIL(inputFile: str) -> str:
85+
def convertWebp(swd: Path, threads: int = 4) -> int:
86+
...
8587
```
8688

89+
90+
91+
## convertWithPIL
92+
93+
[Show source in convert.py:27](../../../tstickers/convert.py#L27)
94+
8795
Convert the webp file to png
8896

8997
#### Arguments
@@ -93,3 +101,12 @@ Convert the webp file to png
93101
#### Returns
94102

95103
- `str` - path to input file
104+
105+
#### Signature
106+
107+
```python
108+
def convertWithPIL(inputFile: str) -> str:
109+
...
110+
```
111+
112+

0 commit comments

Comments
 (0)