Skip to main content

oneimage

A simple python lib to create poster image with define data.

Install oneimage

 pip install oneimage

Usage

data = {
    'width': 300,
    'height': 300,
    'background': 'white',
    'elements': [
        {'type': 'image', 'url': 'http://www.inruan.com/static/img/logo.png', 'left': 0, 'top': 0, 'width': 100, 'height': 100},
        {'type': 'image', 'url': 'http://www.inruan.com/static/img/logo.png', 'left': 200, 'top': 200, 'width': 100, 'height': 100},
        {'type': 'text', 'text': 'Hello', 'font': 'https://cdn-qn.huaeb.com/ifarm/20200305/WeiRuanYaHei-1.ttf', 'left': 0, 'top': 100, 'width': 300, 'size': 20, 'height': 100, 'align': 'center', 'vertical': 'center', 'color': 'black'}
    ]
}
from oneimage import create_image
img = create_image(data=data)
img.show()

The result:

t2

Click to view more information!

CHANGES

1.0.0

  • first version

Metadata

Release files for oneimage 1.2.0

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

Source distribution (sdist)

Source distribution for oneimage 1.2.0
File Size Uploaded Provenance Actions
oneimage-1.2.0.tar.gz 4.3 kB Without provenance Details for oneimage-1.2.0.tar.gz

Release files / oneimage-1.2.0.tar.gz

Download URL oneimage-1.2.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c136e84c2a02489fbba79b4ddc502ae017568f9f1f81da27238d17c87001b4f7
BLAKE2b-256 checksum
How to use checksums
f4779c8d2dc93826e1aa27e5784f04951833cd8322b18544c40806aede24dbaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

Security for oneimage 1.2.0

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