Skip to main content

A collection of utility functions

Project description

julseb_lib_python_utils

A collection of Python utility functions for string manipulation, date handling, random generation, formatting, and more. Inspired by common JavaScript/TypeScript utility libraries, this package provides a wide range of helpers for everyday development tasks.

Features

  • String case conversion (camelCase, snake_case, kebab-case, etc.)
  • Date and time utilities (get_today, get_tomorrow, add_day, etc.)
  • Random generators (numbers, strings, avatars, dates, etc.)
  • Formatting helpers (format_date, format_hour, stringify_px, etc.)
  • Array and object utilities (delete_duplicates, filter_object, sort_by_frequency, etc.)
  • Color conversion (hex to RGB, RGB to hex)
  • Regex patterns for password and email validation

Installation

pip install julseb_lib_python_utils

Usage

Import and use any function:

from julseb_lib_python_utils import get_today, to_camel_case, get_random_number

print(get_today())
print(to_camel_case('Hello world!'))
print(get_random_number(1, 10))

API Reference

Each function is documented with a Python docstring. See the source code for details on arguments and return values.

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

MIT © Julien Sebag

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

julseb_lib_python_utils-1.0.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

julseb_lib_python_utils-1.0.0-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file julseb_lib_python_utils-1.0.0.tar.gz.

File metadata

  • Download URL: julseb_lib_python_utils-1.0.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for julseb_lib_python_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 52d96d627032c3c3be62f625ca09c718ada43eb356913fc49308e4a289bb8700
MD5 99c3e5da68cffc2e892a5a0396fcceac
BLAKE2b-256 771c1a974d6abba66e6644b1adfe1635328aeb494023825d549d199fc3130643

See more details on using hashes here.

File details

Details for the file julseb_lib_python_utils-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for julseb_lib_python_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 881047146d9a3f89a3a23381aa8c4808b2b854adbfbf337557fc8cc926d0795a
MD5 32920de8b9ba45aee9e0b9e7c55bb8c8
BLAKE2b-256 3783c4db5d840704a65bfa49f49bdffde7b52a76564be5eb57d9fa20a3e3609f

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