DemAPI
Make customizable demotivators and motivators through imgonline.com.ua API. Supports async-await style
Documentation: Later
Overview
Configure request params such as text, color, size etc. And then download the image. Optionally save to dick otherwise use image.content
for raw bytes object
import demapi
conf = demapi.Configure(
base_photo=base_path / "example_source.png",
title="Demotivator title",
explanation="Demotivator explanation (the second line)"
)
image = conf.download()
image.save(base_path / "example.png")
Installation
Install the latest version through github:
python -m pip install https://github.com/deknowny/demapi/archive/main.zip
Contributing
Check out CONTRIBUTING.md