A collection of reusable Python utility functions designed to simplify common programming tasks. This library aims to enhance productivity and code readability for developers by providing ready-to-use components.
- String Manipulation Functions: Easily format, case-convert, and clean up strings with a variety of built-in functions.
- Data Structure Helpers: Simplify common operations on lists, dictionaries, and sets, including deduplication, merging, and searching.
- File I/O Operations: Effortlessly read from and write to files while handling common scenarios like JSON and CSV parsing.
- Custom Error Handling: Streamlined exception handling with standardized error messages to ensure graceful failure and easier debugging.
You can install python-utils-19 via pip. Simply run:
pip install python-utils-19For a local development setup, clone the repository and navigate to the project folder:
git clone https://github.com/yourusername/python-utils-19.git
cd python-utils-19
pip install -e .Here’s a quick example of how to use the string manipulation functions from python-utils-19:
from python_utils_19 import string_utils
# Capitalizing a string
original_string = "hello world"
capitalized_string = string_utils.capitalize_words(original_string)
print(capitalized_string) # Output: "Hello World"
# Cleaning up a string
dirty_string = " Python is awesome! "
cleaned_string = string_utils.clean_string(dirty_string)
print(cleaned_string) # Output: "Python is awesome!"Explore more utilities and improve your development workflow with python-utils-19.