Skip to main content

Make customizable demotivators and motivators through imgonline.com.ua API. Supports async-await style

Project description

DemAPI

Make customizable demotivators and motivators through imgonline.com.ua API. Supports async-await style

Example


Documentation: Check out GUIDE.md

Coverage Status PyPI - Python Version PyPI - Downloads PyPI PyPI - Implementation

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

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):

image = await conf.coroutine_download()

Installation

Install the latest version through GitHub:

python -m pip install https://github.com/deknowny/demapi/archive/main.zip

Or through PyPI

python -m pip install demapi

Contributing

Check out CONTRIBUTING.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demapi-0.1.6.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

demapi-0.1.6-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page