Skip to main content

gdutils

Docs

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)

Source distribution for gd-py-utils 0.0.8
File Size Uploaded
gd_py_utils-0.0.8.tar.gz 206.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gd-py-utils 0.0.8
File Interpreter ABI Platform
gd_py_utils-0.0.8-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

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