Skip to content

Commit cc96ea1

Browse files
committed
first release
0 parents commit cc96ea1

19 files changed

+738
-0
lines changed

.gitignore

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
!test
2+
README.rst
3+
requirements_optional.txt
4+
downloads/*
5+
env
6+
temp/*
7+
8+
# DepHell stuff
9+
poetry.lock
10+
11+
# Byte-compiled / optimized / DLL files
12+
__pycache__/
13+
*.py[cod]
14+
*$py.class
15+
16+
# C extensions
17+
*.so
18+
19+
# Distribution / packaging
20+
.Python
21+
build/
22+
develop-eggs/
23+
dist/
24+
downloads/
25+
eggs/
26+
.eggs/
27+
lib/
28+
lib64/
29+
parts/
30+
sdist/
31+
var/
32+
wheels/
33+
pip-wheel-metadata/
34+
share/python-wheels/
35+
*.egg-info/
36+
.installed.cfg
37+
*.egg
38+
MANIFEST
39+
40+
# PyInstaller
41+
# Usually these files are written by a python script from a template
42+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
43+
*.manifest
44+
*.spec
45+
46+
# Installer logs
47+
pip-log.txt
48+
pip-delete-this-directory.txt
49+
50+
# Unit test / coverage reports
51+
htmlcov/
52+
.tox/
53+
.nox/
54+
.coverage
55+
.coverage.*
56+
.cache
57+
nosetests.xml
58+
coverage.xml
59+
*.cover
60+
*.py,cover
61+
.hypothesis/
62+
.pytest_cache/
63+
cover/
64+
65+
# Translations
66+
*.mo
67+
*.pot
68+
69+
# Django stuff:
70+
*.log
71+
local_settings.py
72+
db.sqlite3
73+
db.sqlite3-journal
74+
75+
# Flask stuff:
76+
instance/
77+
.webassets-cache
78+
79+
# Scrapy stuff:
80+
.scrapy
81+
82+
# Sphinx documentation
83+
docs/_build/
84+
85+
# PyBuilder
86+
target/
87+
88+
# Jupyter Notebook
89+
.ipynb_checkpoints
90+
91+
# IPython
92+
profile_default/
93+
ipython_config.py
94+
95+
# pyenv
96+
# For a library or package, you might want to ignore these files since the code is
97+
# intended to run in multiple environments; otherwise, check them in:
98+
# .python-version
99+
100+
# pipenv
101+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
102+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
103+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
104+
# install all needed dependencies.
105+
#Pipfile.lock
106+
107+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
108+
__pypackages__/
109+
110+
# Celery stuff
111+
celerybeat-schedule
112+
celerybeat.pid
113+
114+
# SageMath parsed files
115+
*.sage.py
116+
117+
# Environments
118+
.env
119+
.venv
120+
env/
121+
venv/
122+
ENV/
123+
env.bak/
124+
venv.bak/
125+
126+
# Spyder project settings
127+
.spyderproject
128+
.spyproject
129+
130+
# Rope project settings
131+
.ropeproject
132+
133+
# mkdocs documentation
134+
/site
135+
136+
# mypy
137+
.mypy_cache/
138+
.dmypy.json
139+
dmypy.json
140+
141+
# Pyre type checker
142+
.pyre/
143+
144+
# pytype static type analyzer
145+
.pytype/

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
All major and minor version changes will be documented in this file. Details of
3+
patch-level version changes can be found in [commit messages](../../commits/master).
4+
5+
6+
## 2021 - 2021/01/11
7+
- First release

DOCS/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Pylottie Modules
2+
3+
> Auto-generated documentation modules index.
4+
5+
Full list of [Pylottie](#pylottie-index) project modules.
6+
7+
- [Pylottie Index](#pylottie-index)
8+
- [pylottie](pylottie/index.md#pylottie)

DOCS/pylottie/index.md

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# pylottie
2+
3+
> Auto-generated documentation for [pylottie](../../pylottie/__init__.py) module.
4+
5+
- [Pylottie](../README.md#pylottie-index) / [Modules](../README.md#pylottie-modules) / pylottie
6+
- [convertLottie2GIF](#convertlottie2gif)
7+
- [convertLottie2Webp](#convertlottie2webp)
8+
- [convertLotties2PIL](#convertlotties2pil)
9+
- [convertMultLottie2GIF](#convertmultlottie2gif)
10+
- [convertMultLottie2Webp](#convertmultlottie2webp)
11+
- [recordLotties](#recordlotties)
12+
- [resQuality](#resquality)
13+
14+
## convertLottie2GIF
15+
16+
[[find in source code]](../../pylottie/__init__.py#L16)
17+
18+
```python
19+
def convertLottie2GIF(fileName: str, newFileName: str, quality: int = 0):
20+
```
21+
22+
Convert to webp
23+
24+
#### Arguments
25+
26+
- `fileName` *str* - file path of the lottie file
27+
- `newFileName` *str* - name of the file to write
28+
- `quality` *int, optional* - Quality of the returned sequence. Defaults to 0.
29+
30+
## convertLottie2Webp
31+
32+
[[find in source code]](../../pylottie/__init__.py#L27)
33+
34+
```python
35+
def convertLottie2Webp(fileName: str, newFileName: str, quality: int = 0):
36+
```
37+
38+
Convert to webp
39+
40+
#### Arguments
41+
42+
- `fileName` *str* - file path of the lottie file
43+
- `newFileName` *str* - name of the file to write
44+
- `quality` *int, optional* - Quality of the returned sequence. Defaults to 0.
45+
46+
## convertLotties2PIL
47+
48+
[[find in source code]](../../pylottie/__init__.py#L79)
49+
50+
```python
51+
def convertLotties2PIL(
52+
fileNames: list[str],
53+
quality: int = 0,
54+
) -> list[tuple[(list[Image.Image], float)]]:
55+
```
56+
57+
Convert list of lottie files to a list of images with a duration
58+
59+
#### Arguments
60+
61+
- `fileNames` *list[str]* - list of file paths of the lottie files
62+
- `quality` *int, optional* - Quality of the returned sequence. Defaults to 0.
63+
64+
#### Returns
65+
66+
- `list[tuple[list[Image.Image],` *float]]* - pil images to write to gif/ webp and duration
67+
68+
## convertMultLottie2GIF
69+
70+
[[find in source code]](../../pylottie/__init__.py#L38)
71+
72+
```python
73+
def convertMultLottie2GIF(
74+
fileNames: list[str],
75+
newFileNames: list[str],
76+
quality: int = 0,
77+
):
78+
```
79+
80+
Convert to gif
81+
82+
#### Arguments
83+
84+
- `fileNames` *list[str]* - list of file path to the lottie files
85+
- `newFileNames` *list[str]* - name of the files to write
86+
- `quality` *int, optional* - Quality of the returned sequence. Defaults to 0.
87+
88+
## convertMultLottie2Webp
89+
90+
[[find in source code]](../../pylottie/__init__.py#L54)
91+
92+
```python
93+
def convertMultLottie2Webp(
94+
fileNames: list[str],
95+
newFileNames: list[str],
96+
quality: int = 0,
97+
):
98+
```
99+
100+
Convert to webp
101+
102+
#### Arguments
103+
104+
- `fileNames` *list[str]* - list of file path to the lottie files
105+
- `newFileNames` *list[str]* - name of the files to write
106+
- `quality` *int, optional* - Quality of the returned sequence. Defaults to 0.
107+
108+
## recordLotties
109+
110+
[[find in source code]](../../pylottie/__init__.py#L114)
111+
112+
```python
113+
async def recordLotties(
114+
lottieData: list[str],
115+
step: int,
116+
) -> list[tuple[(int, int)]]:
117+
```
118+
119+
Record the lottie data to a set of images
120+
121+
#### Arguments
122+
123+
- `lottieData` *str* - lottie data as string
124+
- `step` *int* - Step by, Related to quality of the returned sequence.
125+
126+
#### Returns
127+
128+
- `tuple[int,` *int]* - duration and number of frames
129+
130+
## resQuality
131+
132+
[[find in source code]](../../pylottie/__init__.py#L72)
133+
134+
```python
135+
def resQuality(quality):
136+
```

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2021 Kieran W
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)