Skip to main content

logo

A utility library for building clean and reusable data manipulation functions.


Utility Python library that centralizes all your data manipulation logic into one clean and structured place. Instead of scattering helper functions across the codebase, it organizes them by data type — such as strings, decimals, dates, and more — making your application easier to maintain, test, and extend.

  • Centralized and consistent data utilities
  • Cleaner imports — no more from datetime import datetime vs import datetime as dt
  • Reduces boilerplate and external dependencies
  • Makes utility logic reusable, testable, and predictable

Installation

pip install gadutils

Usage

from gadutils import strings, dates, decimals, fields, json, lists, paths, urls

print(strings.kebab("Hello World"))  # hello-world

date = dates.now()
print(dates.formatiso(date))   # "2025-04-10T12:34:56.789012+0000"

print(paths.current())         # "/home/user/project"
print(paths.define())          # "/home/user/project"
print(paths.define("/tmp"))    # "/tmp"

print(decimals.add(10.25, 5.75))        # Decimal('16.00')
print(decimals.split(100.05, 3))        # [Decimal('33.35'), Decimal('33.35'), Decimal('33.35')]

print(lists.unique([1, 2, 2, 3, 1]))         # [1, 2, 3]
print(lists.flatten([[1, 2], [3, [4]]]))     # [1, 2, 3, 4]

Metadata

Release files for gadutils 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gadutils 0.0.3
File Size Uploaded
gadutils-0.0.3.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gadutils 0.0.3
File Interpreter ABI Platform
gadutils-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / gadutils-0.0.3.tar.gz

Download URL gadutils-0.0.3.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
601e3c4a2e6c8e1d617f58717a06bc015994a5d12cef0e9a97a03fb33a2ee574
BLAKE2b-256 checksum
How to use checksums
10c86fbb11b8ec00935863fb020d57973fd9b07a3d28aaaeee9f0f030203d27e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / gadutils-0.0.3-py3-none-any.whl

Download URL gadutils-0.0.3-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de28e403d67490492a303e9cb1cad7fbf4873eabe58fa125de35e8053298749a
BLAKE2b-256 checksum
How to use checksums
ae9b22f717fa35384ef9fa3be1426ba8cce78d67959bd49cd8d5188b59880b11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.3 This release

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