No project description provided
Project description
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gd_py_utils-0.0.8.tar.gz
(206.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gd_py_utils-0.0.8.tar.gz.
File metadata
- Download URL: gd_py_utils-0.0.8.tar.gz
- Upload date:
- Size: 206.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd55f1be63469d6477bb7f5d6ccdab276ea279df79cc01e0987f7013ef484993
|
|
| MD5 |
35c117e100645218348c0c91c124314a
|
|
| BLAKE2b-256 |
81dfa497572fb06d843abedac8ed5117b3b3fd82dd315216128723e26267a697
|
File details
Details for the file gd_py_utils-0.0.8-py3-none-any.whl.
File metadata
- Download URL: gd_py_utils-0.0.8-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32073c08bf2cf5d94c08db50e34d2d9ca5e90a39c7ce5b2052202e81119b4d15
|
|
| MD5 |
f43075dc006095d746e2dfde51555a02
|
|
| BLAKE2b-256 |
4b7614ee8bff7199df6e77e28d2e8ef4ec10bcd6c65b693103e9e0f48b27c179
|