Skip to main content

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

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gadutils-0.0.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gadutils-0.0.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file gadutils-0.0.3.tar.gz.

File metadata

  • Download URL: gadutils-0.0.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gadutils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 601e3c4a2e6c8e1d617f58717a06bc015994a5d12cef0e9a97a03fb33a2ee574
MD5 993b17b3942abc1829b2e937277caaec
BLAKE2b-256 10c86fbb11b8ec00935863fb020d57973fd9b07a3d28aaaeee9f0f030203d27e

See more details on using hashes here.

File details

Details for the file gadutils-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gadutils-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for gadutils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 de28e403d67490492a303e9cb1cad7fbf4873eabe58fa125de35e8053298749a
MD5 646f3375d9b50083099e530d9b470821
BLAKE2b-256 ae9b22f717fa35384ef9fa3be1426ba8cce78d67959bd49cd8d5188b59880b11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page