Name | pydistort JSON |
Version |
0.0.2
JSON |
| download |
home_page | None |
Summary | Asynchronous media distortion module |
upload_time | 2024-01-06 19:04:07 |
maintainer | None |
docs_url | None |
author | barsikus007 |
requires_python | >=3.10 |
license | None |
keywords |
asyncio
distort
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PyDistort
[![PyPI - Version](https://img.shields.io/pypi/v/pydistort.svg)](https://pypi.org/project/pydistort)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pydistort.svg)](https://pypi.org/project/pydistort)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
-----
**Table of Contents**
- [Installation](#installation)
- [License](#license)
- [Usage](#usage)
## Installation
```console
pip install pydistort
```
Dev build
```bash
# without optional dependencies:
pip install -U git+https://github.com/barsikus007/pydistort
# with optional dependencies:
pip install -U "pydistort[all]@ git+https://github.com/barsikus007/pydistort"
```
For distortion, you need to install imagemagick
#### Linux (Ubuntu)
```bash
sudo apt install imagemagick
```
#### Windows
You can do this via scoop.sh
```pwsh
scoop install imagemagick
```
For video, gif and apng procession, you need to install ffmpeg
#### Linux (Ubuntu)
```bash
sudo apt install ffmpeg
```
#### Windows
You can do this via scoop.sh
```pwsh
scoop install ffmpeg
```
For lottie->gif procession you need to install gtk
#### Linux (Ubuntu)
```bash
sudo apt install libgtk-3-0
```
#### Windows
You can do this via scoop.sh
```pwsh
scoop install msys2
msys2 # then exit in msys shell
msys2 -c "pacman -S mingw-w64-x86_64-gtk3 --noconfirm"
```
## License
`pydistort` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
## Usage
```python
from pydistort.image.seam_carving import distort
await distort('image.png', 60)
```
## TODO for 0.1.0 release
- [ ] Write readme
- [ ] Rewrite seam carving
- [ ] Rewrite seam carving py
- [ ] Maybe rewrite to Glaxnimate
- [ ] Add ffmpeg commands
- [ ] lottie -p parameter
- [ ] https://github.com/bodqhrohro/giftolottie
- [ ] https://github.com/bunkahle/gif2numpy
- [ ] os.remove to unlink
Raw data
{
"_id": null,
"home_page": null,
"name": "pydistort",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "asyncio,distort",
"author": "barsikus007",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4d/6c/b3fd2ccf0b8625e3524b847581ec4c87ccc44ace3de0e456df5e172d1fc2/pydistort-0.0.2.tar.gz",
"platform": null,
"description": "# PyDistort\n\n[![PyPI - Version](https://img.shields.io/pypi/v/pydistort.svg)](https://pypi.org/project/pydistort)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pydistort.svg)](https://pypi.org/project/pydistort)\n[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)\n\n-----\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [License](#license)\n- [Usage](#usage)\n\n## Installation\n\n```console\npip install pydistort\n```\nDev build\n```bash\n# without optional dependencies:\npip install -U git+https://github.com/barsikus007/pydistort\n# with optional dependencies:\npip install -U \"pydistort[all]@ git+https://github.com/barsikus007/pydistort\"\n```\nFor distortion, you need to install imagemagick\n#### Linux (Ubuntu)\n```bash\nsudo apt install imagemagick\n```\n#### Windows\nYou can do this via scoop.sh\n```pwsh\nscoop install imagemagick\n```\nFor video, gif and apng procession, you need to install ffmpeg\n#### Linux (Ubuntu)\n```bash\nsudo apt install ffmpeg\n```\n#### Windows\nYou can do this via scoop.sh\n```pwsh\nscoop install ffmpeg\n```\nFor lottie->gif procession you need to install gtk\n#### Linux (Ubuntu)\n```bash\nsudo apt install libgtk-3-0\n```\n#### Windows\nYou can do this via scoop.sh\n```pwsh\nscoop install msys2\nmsys2 # then exit in msys shell\nmsys2 -c \"pacman -S mingw-w64-x86_64-gtk3 --noconfirm\"\n```\n\n## License\n\n`pydistort` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n\n## Usage\n\n```python\nfrom pydistort.image.seam_carving import distort\n\nawait distort('image.png', 60)\n```\n\n## TODO for 0.1.0 release\n- [ ] Write readme\n- [ ] Rewrite seam carving\n- [ ] Rewrite seam carving py\n- [ ] Maybe rewrite to Glaxnimate\n- [ ] Add ffmpeg commands\n- [ ] lottie -p parameter\n- [ ] https://github.com/bodqhrohro/giftolottie\n- [ ] https://github.com/bunkahle/gif2numpy\n- [ ] os.remove to unlink\n",
"bugtrack_url": null,
"license": null,
"summary": "Asynchronous media distortion module",
"version": "0.0.2",
"project_urls": {
"Documentation": "https://github.com/barsikus007/pydistort#readme",
"Issues": "https://github.com/barsikus007/pydistort/issues",
"Source": "https://github.com/barsikus007/pydistort"
},
"split_keywords": [
"asyncio",
"distort"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3c079327cdacaf3892e50efb22e965def902d42bcd771e13a6808fecd64d28e2",
"md5": "911bd3d8d383c38c74004f6fd0cdfefe",
"sha256": "396fabebaf06cb31e97a6d6b9a7790a41164f2f93a7c3a11ed5207a5094edcd5"
},
"downloads": -1,
"filename": "pydistort-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "911bd3d8d383c38c74004f6fd0cdfefe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 11111,
"upload_time": "2024-01-06T19:04:05",
"upload_time_iso_8601": "2024-01-06T19:04:05.973025Z",
"url": "https://files.pythonhosted.org/packages/3c/07/9327cdacaf3892e50efb22e965def902d42bcd771e13a6808fecd64d28e2/pydistort-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4d6cb3fd2ccf0b8625e3524b847581ec4c87ccc44ace3de0e456df5e172d1fc2",
"md5": "5fb5d4b995b98426aa44c714e99a049b",
"sha256": "94ea502553128c712d08bec482c3f745486e0361cfa408a0ab0bc107a55bfd9b"
},
"downloads": -1,
"filename": "pydistort-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "5fb5d4b995b98426aa44c714e99a049b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 8761,
"upload_time": "2024-01-06T19:04:07",
"upload_time_iso_8601": "2024-01-06T19:04:07.119468Z",
"url": "https://files.pythonhosted.org/packages/4d/6c/b3fd2ccf0b8625e3524b847581ec4c87ccc44ace3de0e456df5e172d1fc2/pydistort-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-06 19:04:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "barsikus007",
"github_project": "pydistort#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pydistort"
}