demapi-0.1.6
توضیحات
Make customizable demotivators and motivators through imgonline.com.ua API. Supports async-await style
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | demapi-0.1.6 |
| نام | demapi |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yan Kurbatov |
| ایمیل نویسنده | deknowny@gmail.com |
| آدرس صفحه اصلی | https://github.com/deknowny/demapi |
| آدرس اینترنتی | https://pypi.org/project/demapi/ |
| مجوز | MIT |
# DemAPI
> Make customizable demotivators and motivators through imgonline.com.ua API. Supports async-await style

***
__Documentation__: Check out [GUIDE.md](https://github.com/deknowny/demapi/blob/main/GUIDE.md)
[](https://coveralls.io/github/deknowny/demapi?branch=main)




# Features
* Sync and `async-await` style
* Customizable titles and explanation (size, colors etc.)
* Flexible output image (line breaks showed correctly)
* Not CPU-bound (through unlimited API)
* Full tests coverage
* Full typed
## Overview
Configure request params such as text, color, size etc.
And then download the image. Optionally save to disk otherwise
use `image.content` for raw bytes object
```python
import demapi
conf = demapi.Configure(
base_photo="example.png",
title="The first line",
explanation="The second line"
)
image = conf.download()
image.save("example.png")
```
Or via `await` (based on `aiohttp`):
```python
image = await conf.coroutine_download()
```
# Installation
Install the latest version through `GitHub`:
```shell
python -m pip install https://github.com/deknowny/demapi/archive/main.zip
```
Or through `PyPI`
```shell
python -m pip install demapi
```
# Contributing
Check out [CONTRIBUTING.md](./CONTRIBUTING.md)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.26.0,<3.0.0 | requests |
| >=3.8.1,<4.0.0 | aiohttp |
| >=2021.10.8,<2022.0.0 | certifi |
| >=21.11b1,<22.0) | black |
| >=5.10.1,<6.0.0) | isort |
| >=2.15.0,<3.0.0) | pre-commit |
| >=3.0.0,<4.0.0) | pytest-cov |
| >=3.3.1,<4.0.0) | coveralls |
| >=6.1.2,<7.0.0) | coverage |
| >=0.16.0,<0.17.0) | pytest-asyncio |
| >=6.2.5,<7.0.0) | pytest |
| >=0.910,<0.911) | mypy |
| >=2.26.1,<3.0.0) | types-requests |
| >=2021.10.8,<2022.0.0) | types-certifi |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl demapi-0.1.6:
pip install demapi-0.1.6.whl
نصب پکیج tar.gz demapi-0.1.6:
pip install demapi-0.1.6.tar.gz