Asynchronous python client for image-processor server (https://github.com/thec0sm0s/image-processor).
Project description
# image-processor-client
[![Build Status](https://thecosmos.visualstudio.com/image-processor-client/_apis/build/status/image-processor-client?branchName=master)](https://thecosmos.visualstudio.com/image-processor-client/_build/latest?definitionId=8?branchName=master)
[![Documentation Status](https://readthedocs.org/projects/image-processor-client/badge/?version=latest)](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 Client
client = 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/
[![Build Status](https://thecosmos.visualstudio.com/image-processor-client/_apis/build/status/image-processor-client?branchName=master)](https://thecosmos.visualstudio.com/image-processor-client/_build/latest?definitionId=8?branchName=master)
[![Documentation Status](https://readthedocs.org/projects/image-processor-client/badge/?version=latest)](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 Client
client = 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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for image_processor_client-2.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58d2ed966c411df8b1d8a47cabe340ab572122708e0248b644e83c73cb5c00e3 |
|
MD5 | 358fc0dc7ba28068db10c2829616b0a2 |
|
BLAKE2b-256 | 7f48383802a0e436cc9fd77eb888a3c95b1b6b08cb870a92811c76f923b56c9a |
Close
Hashes for image_processor_client-2.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d53a27fe22ebf0ffd3da485d6f3cb73bef62cdd81a4ccc91f558cc8dced27e0e |
|
MD5 | daec06fd57f39a61a76b376d5c1ce545 |
|
BLAKE2b-256 | a1813fac78ecb2be0cd1ff2b86742239b7fa4df730a727d7cd9748fa034f27a2 |