Skip to content

AlexDemure/gadutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages