Skip to main content

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

Metadata

Release files for demapi 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for demapi 0.1.6
File Size Uploaded Provenance Actions
demapi-0.1.6.tar.gz 7.0 kB Without provenance Details for demapi-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for demapi 0.1.6
File Interpreter ABI Platform Actions
demapi-0.1.6-py3-none-any.whl Python 3 none any Details for demapi-0.1.6-py3-none-any.whl

Total release size: 15.0 kB

Release files / demapi-0.1.6.tar.gz

Download URL demapi-0.1.6.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dee5ea814b22eded69c2ac89b68551539ae8a1ac0d28bd6ce3c3596aaab458b9
BLAKE2b-256 checksum
How to use checksums
a536b47b7258d6f5fe0da2b25ae24acdcb2992c1bcde590b5b631e97e75f0afa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure

Release files / demapi-0.1.6-py3-none-any.whl

Download URL demapi-0.1.6-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fce90532249250ae6938ea9ccddb0b827d5e2abc7d5bdfa83e92dd300743ef5b
BLAKE2b-256 checksum
How to use checksums
efdfc6733abf9ba50f7b11f7bd89a192633e2659fcbc35d48a3b0861b39fd359
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure

Security for demapi 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page