gdutils
pip install gd-py-utils
import gdutils as gd
out = gd.fPath(__file__, "out", mkdir=True)
with gd.Container(out) as ct:
...
A collection of Python utilities for data management, plotting, and more. Supports
- flexible file containers with attribute access,
- easy temporary directories,
- plotting helpers for Matplotlib,
- and streamlined logging.
Features
- Container: Manage files & folders with Pythonic paths and attribute access.
- TempContainer: Safe, auto-cleanup temp directories.
- fPath: Utility for creating safe, structured output directories.
- SimplePlot (SPlot): Context manager for pretty Matplotlib plots.
- Logger: Simple logger setup for scripts and CLIs.
Basic Usage
import gdutils as gd
# Data container example
with gd.Container("out") as ct:
x = [1, 2, 3]
with open(ct / "data.txt", "w") as f:
f.write(str(x))
print(ct.data) # Access file as attribute
# Plotting example
import matplotlib.pyplot as plt
with gd.SPlot():
plt.plot([1, 2], [3, 4])
See examples/ for more.
Documentation
Full docs at: https://gdutils-a2ef81.gitlabpages.inria.fr/
Metadata
Release files for gd-py-utils 0.0.8
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 |
|---|---|---|---|---|
| gd_py_utils-0.0.8.tar.gz | 206.7 kB | Without provenance | Details for gd_py_utils-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gd_py_utils-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for gd_py_utils-0.0.8-py3-none-any.whl |
Total release size: 222.9 kB
Release files / gd_py_utils-0.0.8.tar.gz
| Download URL | gd_py_utils-0.0.8.tar.gz |
|---|---|
| Size | 206.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd55f1be63469d6477bb7f5d6ccdab276ea279df79cc01e0987f7013ef484993
|
|
BLAKE2b-256 checksum How to use checksums |
81dfa497572fb06d843abedac8ed5117b3b3fd82dd315216128723e26267a697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / gd_py_utils-0.0.8-py3-none-any.whl
| Download URL | gd_py_utils-0.0.8-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32073c08bf2cf5d94c08db50e34d2d9ca5e90a39c7ce5b2052202e81119b4d15
|
|
BLAKE2b-256 checksum How to use checksums |
4b7614ee8bff7199df6e77e28d2e8ef4ec10bcd6c65b693103e9e0f48b27c179
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for gd-py-utils 0.0.8
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.