Reusable Python utilities for dates, money, and more
Project description
python-utils-rondomondo
Reusable Python utilities for dates and money.
Install
pip install python-utils-rondomondo
Or with uv:
uv add python-utils-rondomondo
Usage
from python_utils.dates import now_utc, parse_duration, date_windows
from python_utils.money import format_currency, allocate, round_half_up
Dates
from python_utils.dates import now_utc, parse_duration, to_iso
now = now_utc()
delta = parse_duration("7days")
print(to_iso(now))
Money
from decimal import Decimal
from python_utils.money import format_currency, allocate
print(format_currency(Decimal("1234.5"))) # $1,234.50
shares = allocate(Decimal("100.00"), [1, 2, 3])
Requirements
Python 3.11+
License
MIT
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
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 python_utils_rondomondo-0.1.2.tar.gz.
File metadata
- Download URL: python_utils_rondomondo-0.1.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8410c26d3bb11af33a40efab6a4940805fcacce52a5e28943b74302719a3a8e8
|
|
| MD5 |
91df1b752730e93733ef1e17d1ae97ba
|
|
| BLAKE2b-256 |
bbc1bc155f1bab491351e6ce95768ff733b329f215713d86adf7dc4b1fa9c824
|
File details
Details for the file python_utils_rondomondo-0.1.2-py3-none-any.whl.
File metadata
- Download URL: python_utils_rondomondo-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3d4dee092a2af80b65424e7bf50ed5d744bcaf47199ba00d2d897e4b366ef24
|
|
| MD5 |
15be30834c3facc898b89794d4679fe6
|
|
| BLAKE2b-256 |
06a333bd7aed7eb029f49f77f71d576c146e547a0d21aa3ee8d8a40fc1cea7d2
|