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 Provenance Actions
pyutils_demo-1.0.0.tar.gz 4.3 kB Without provenance Details for pyutils_demo-1.0.0.tar.gz

Built distribution (wheel)

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

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

Security for pyutils-demo 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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