Skip to main content

pyutils

A collection of utility functions for Python.

Installation

pip install pyutils-demo

Usage

String Utilities

from pyutils import reverse_string, to_camel_case, count_words

reverse_string('hello')  # 'olleh'
to_camel_case('hello_world')  # 'helloWorld'
count_words('Hello World')  # 2

Date Utilities

from pyutils import format_datetime, days_ago, is_weekend

format_datetime()  # '2024-01-01 12:00:00'
days_ago(7)  # datetime object 7 days ago
is_weekend()  # True/False

File Utilities

from pyutils import read_file, write_file, read_json

write_file('test.txt', 'Hello')
read_file('test.txt')  # 'Hello'
read_json('data.json')  # {'key': 'value'}

Math Utilities

from pyutils import add, multiply, average, is_prime

add(2, 3)  # 5
average([1, 2, 3])  # 2.0
is_prime(17)  # True

License

MIT

Metadata

Release files for pyutils-demo 1.0.0

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

Source distribution (sdist)

Source distribution for pyutils-demo 1.0.0
File Size Uploaded
pyutils_demo-1.0.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyutils-demo 1.0.0
File Interpreter ABI Platform
pyutils_demo-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / pyutils_demo-1.0.0.tar.gz

Download URL pyutils_demo-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0c84102f0a01627eb32a0c843ddc077b6db7a88c03292cadde1175a0567e122c
BLAKE2b-256 checksum
How to use checksums
7d9299565441fe081fd8b1d951b23c1a5375b517f483ffa88c9f68a96948386e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / pyutils_demo-1.0.0-py3-none-any.whl

Download URL pyutils_demo-1.0.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38ebedf8f5657792f5ce0c5c4f2eac1d2ccb88e34a6af09171fba24807aadada
BLAKE2b-256 checksum
How to use checksums
d486ee5ae3ec7fd551449bb44bf0593dd784eb56d2d8e1feac570bd9bbcc5ead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

1.0.0 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