Skip to main content

Trepro

Reproduce everything...   •   pip install trepro

codecov


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 !!!


alt text

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)

Source distribution for trepro 1.0.1
File Size Uploaded
trepro-1.0.1.tar.gz 3.3 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.0

2 release files

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