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.1.tar.gz (12.7 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.1-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: julseb_lib_python_utils-1.0.1.tar.gz
  • Upload date:
  • Size: 12.7 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.1.tar.gz
Algorithm Hash digest
SHA256 5dc9cce4aa90c11c034885376d2cab5fdc78fd6a91c813e9ae603e562a857c8a
MD5 35cdb4e4d71da2e1d71a161f00503446
BLAKE2b-256 d54ad09ae46b721861318e4f25a4ac4f06b4b1644dd9b89eaa529a6fff4b3169

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for julseb_lib_python_utils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0386fde2ff6112c933660ecf67db6d8940f3f8f3f8c83453c4556e386e6b7f73
MD5 f5f70c27dee6509de78814f6d028498b
BLAKE2b-256 c62be089fa799845798ab0a3e01ec1a2ce5d5c2ee5de60a8d465340994b64958

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