cairocffi-stubs
This package contains type stubs to provide more precise static types and type inference for cairocffi.
Installation
pip install cairocffi-stubs
Usage
from io import BytesIO
import cairocffi as cairo
import matplotlib.pyplot as plt
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 300, 200)
context = cairo.Context(surface)
context.show_text('Hello World!')
img = BytesIO(surface.write_to_png()) # overloaded
plt.imshow(plt.imread(img))
plt.show()
Static type checker can correctly recognize the return type of surface.write_to_png() as bytes when passing no arguments. No type errors will be raised.
Style Guidelines
Follow the same style guidelines as typeshed.
Metadata
Release files for cairocffi-stubs 0.1.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 |
|---|---|---|---|---|
| cairocffi-stubs-0.1.2.tar.gz | 7.1 kB | Without provenance | Details for cairocffi-stubs-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cairocffi_stubs-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for cairocffi_stubs-0.1.2-py3-none-any.whl |
Total release size: 16.5 kB
Release files / cairocffi-stubs-0.1.2.tar.gz
| Download URL | cairocffi-stubs-0.1.2.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02c250aa7626549a39811ed6f8a8be60d5a0d1a8a1190decd8f4b49c1dee3ce6
|
|
BLAKE2b-256 checksum How to use checksums |
8bf6ec686b31333dee2060b4494d05fc2571b1955a0a491c452ccf0e0753b519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Windows/10
|
Release files / cairocffi_stubs-0.1.2-py3-none-any.whl
| Download URL | cairocffi_stubs-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1208023f17f6261debd01000b86818cc1c8cba8597a6fa134cd0217c53a59478
|
|
BLAKE2b-256 checksum How to use checksums |
6b3ce2dca7798514cc15a485790a51094c7e2ace5451794e1eefa846d0c8fe17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Windows/10
|
Security for cairocffi-stubs 0.1.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.