No project description provided
Project description
gdutils
pip install gd-py-utils
import gdutils as gd
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.7.tar.gz
(206.0 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.7.tar.gz.
File metadata
- Download URL: gd_py_utils-0.0.7.tar.gz
- Upload date:
- Size: 206.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cf8352cdbe8500e15c0029b82f0ea2c80c23e72c6a548d561c2607039e7b555
|
|
| MD5 |
9a230d20c972916d897492d4faeeb469
|
|
| BLAKE2b-256 |
06a2333119b41717258cef3bf5528d57cf6b177c090063a63a30655dacb98a54
|
File details
Details for the file gd_py_utils-0.0.7-py3-none-any.whl.
File metadata
- Download URL: gd_py_utils-0.0.7-py3-none-any.whl
- Upload date:
- Size: 15.9 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 |
6603733ca69dfe859d96fc56ceb902d303bc0459d4737dd0ad9aa53c10f63fdf
|
|
| MD5 |
92d82b16e2c7b47977b3c2438f7107ec
|
|
| BLAKE2b-256 |
d66a7b50afaf08529bc98cb739bcead4fd8532fffa4437824ca8a0619d7824be
|