Trepro
Reproduce everything... •pip install trepro
What Trepro afford:
-
Save and load matplotlib figures with metadata, so you can recover the state of the figure whenever you want.
-
More coming soon...
Using Trepro
Install
pip install trepro
✨ Recover Figure with Metadata ✨
!!! Supports only .pdf & .png !!!
from matplotlib import pyplot as plt
+ from trepro.matplotlib import load_saved_figure, patch_savefig
fig, ax = plt.subplots()
ax.plot([1, 2, 3], [4, 5, 6])
- # Supports only .pdf & .png, other formats will behave as-is
+ patch_savefig() # patch savefig to save metadata
plt.savefig("test.png")
# --- load saved figure ---
+ fig, metadata = load_saved_figure("test.png")
+ print(metadata)
Metadata
Release files for trepro 1.0.1
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 |
|---|---|---|---|---|
| trepro-1.0.1.tar.gz | 3.3 kB | Without provenance | Details for trepro-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trepro-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for trepro-1.0.1-py3-none-any.whl |
Total release size: 6.8 kB
Release files / trepro-1.0.1.tar.gz
| Download URL | trepro-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9082862738ad5a8a43b9be8eff4076d26a8125cfce230fc1b9d0b4a0d467e36
|
|
BLAKE2b-256 checksum How to use checksums |
cd42558f0fb819f47d70d9bb1c00b1c7be916fee9a9762790676fbaf865177ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.18.2 CPython/3.10.14 Linux/5.15.153.1-microsoft-standard-WSL2
|
Release files / trepro-1.0.1-py3-none-any.whl
| Download URL | trepro-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80cb8988812ce5375614cbef9f79db0cda5a02a438a0a85dc70f95a71937f84b
|
|
BLAKE2b-256 checksum How to use checksums |
8cfb1c3d9c395ad4bc8c9707b17ff7d2e2ad28b08f743cd4f23df5bc0eae16f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.18.2 CPython/3.10.14 Linux/5.15.153.1-microsoft-standard-WSL2
|
Security for trepro 1.0.1
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.