https://github.com/weibeu/image-processor-client
Asynchronous python client for web image-processor service API server.
https://github.com/weibeu/image-processor-client
aiohttp async asynchronous asyncio client image image-processing python3 rest wpc
Last synced: 7 months ago
JSON representation
Asynchronous python client for web image-processor service API server.
- Host: GitHub
- URL: https://github.com/weibeu/image-processor-client
- Owner: weibeu
- License: mit
- Created: 2019-01-11T16:00:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T07:30:59.000Z (about 5 years ago)
- Last Synced: 2025-02-02T11:49:46.432Z (8 months ago)
- Topics: aiohttp, async, asynchronous, asyncio, client, image, image-processing, python3, rest, wpc
- Language: Python
- Homepage:
- Size: 2.74 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# image-processor-client
[](https://thecosmos.visualstudio.com/image-processor-client/_build/latest?definitionId=8?branchName=master)
[](https://image-processor-client.readthedocs.io/en/latest/?badge=latest)Asynchronous image-processor python client for [image-processor] API server.
### Installation
To install image processor client library, you can use following command:
```sh
python3 -m pip install image-processor-client
```### Basic Example
```python
import asyncio
from image_processor_client import Clientclient = Client()
loop = asyncio.get_event_loop()
meme_bytes = loop.run_until_complete(client.memes.rip("Python", "https://i.imgur.com/U5QR5SY.png"))with open("rip_meme.png", "wb") as meme_file:
meme_file.write(meme_bytes)
```### Requiremets
* Python 3.6+
* `aiohttp`
* [image-processor] API Server (if self-hosted)### Documentation
For all of the available methods and full API reference, check our [documentaion].[image-processor]: https://github.com/thec0sm0s/image-processor
[documentaion]: https://image-processor-client.readthedocs.io/en/latest/