No project description provided
Project description
gdutils
pip install gd-py-utils
import gdutils as gd
Data Container
A Container is a lightweight directory manager with a persistent key → file path registry:
- Create files easily:
f = ct / "path/to/file.ext" - Each file is automatically registered under a logical key (default: the file name without extension)
- The registry is saved as
infos.json - Access registered files as attributes:
ct.output,ct.data, etc.
import gdutils as gd
import numpy as np
with gd.Container("out", clean=True) as ct:
f = ct / "results/output.npy"
np.save(f, np.arange(10))
print(ct.output) # out/results/output.npy
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.6.tar.gz
(197.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.6.tar.gz.
File metadata
- Download URL: gd_py_utils-0.0.6.tar.gz
- Upload date:
- Size: 197.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 |
e7e5d6a33d27e1fa960204f5a8c71ef2b509307e612495774c84ae9f52c1c66e
|
|
| MD5 |
f73a5cc123b958312e7d9f405c0d7038
|
|
| BLAKE2b-256 |
c18fa00ff310979789a6017aa7f618d5c7b66e89a87f16fa0135b1510302732a
|
File details
Details for the file gd_py_utils-0.0.6-py3-none-any.whl.
File metadata
- Download URL: gd_py_utils-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.6 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 |
2b977c63cb7c8f65d220c0744758ac0ebb702710a1ef13e426b81713467e9a6f
|
|
| MD5 |
de1abed87bd3a37d612776c002f5fc00
|
|
| BLAKE2b-256 |
2520fab9b78ac8fe11b87aaf6ed6a9b30a4ac7351c985fc2df3ab4341328f563
|