Simple module for creating placeholder images
install by
$ pip install python-placeholder
Example:
from placeholder import PlaceHolderImage
img = PlaceHolderImage(width = 300, height = 200, path = 'placeholder.png')
img.save_image()
Known bugs:
if you do not provide absolute path to font to PlaceHolderImage the default font used will have very small size.
if you get something like The _imagingft C module is not installed, look here https://stackoverflow.com/questions/4011705/python-the-imagingft-c-module-is-not-installed
Run tests:
You can run the testsuite with the following command:
python -m unittest tests
Or use tox to test against all supported python versions.
Metadata
Release files for python-placeholder 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-placeholder-0.2.tar.gz | 3.0 kB | Without provenance | Details for python-placeholder-0.2.tar.gz |
Release files / python-placeholder-0.2.tar.gz
| Download URL | python-placeholder-0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3f4f5866d6177f9554d1e03262c656c383d4df7f28a229c94f0fdbdbb89a448
|
|
BLAKE2b-256 checksum How to use checksums |
b38fb7891f25c8418db6a4453c2be6084fddc07d7ba914d08bc0270dba834577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-placeholder 0.2
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.