A collection of reusable functions.
Project description
Utils Funcs
A collection of reusable functions that simplify common tasks and frequent operations within the project. These functions are designed to improve development efficiency by providing simple and effective solutions for tasks like data manipulation, validations, and transformations.
✨ Features
is_valid_email(email: str) -> bool: Validates if the provided email is in a correct format.slugify(text: str, separator: str = "-") -> str: Converts a string into a slugified format, suitable for URLs.
📦 Installation
You can install this package via pip:
pip install utils_funcs
🚀 Usage
is_valid_email
This function checks if an email is valid according to a standard regex pattern.
from your_package import is_valid_email
email = "example@example.com"
is_valid = is_valid_email(email)
print(is_valid) # True if the email is valid, False otherwise
slugify
This function converts a given string into a slugified format, which is useful for generating clean URLs. You can also specify a custom separator (default is -).
from utils_funcs import slugify
text = "This is an Example Title!"
slug = slugify(text)
print(slug) # Output: "this-is-an-example-title"
🤝 Contributing
Contributions are welcome! If you find any issues or would like to add new features, feel free to fork the repository and submit a pull request.
⚖️ License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utils_funcs-0.1.0.tar.gz.
File metadata
- Download URL: utils_funcs-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed51af0031346a8f60565eedec337314ded693ba3db91ca31d82d5126e64dad
|
|
| MD5 |
70b1ce3bdf180ed67ea494fab3046ce2
|
|
| BLAKE2b-256 |
1848b74569d020d96d1bb8546b11fe41a87b597c7bc29c4ce6b3c47ec5ffdf00
|
File details
Details for the file utils_funcs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: utils_funcs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18087a96d4157b88a205eafc7f01b577494c7ebc191e9223869fc359106be6da
|
|
| MD5 |
36293e2e3f897408f16730bb4969509a
|
|
| BLAKE2b-256 |
72e478f7c26f836d10cbfcdccdf5e124560c572c49d2d7483a303655585da343
|