Python library enhanced with a wide range of functions for different scenarios.
Project description
This library allows the utilization of different utility functions for different scenarios.
Main utils:
time
string
data_structures
db
django
django_rest
math
pandas
exception
choices
Quick start
Import wanted function like this:
from python_utils.time import date_range date_range(start_date, end_date)
Although the library provides some utility functions related to other libraries like django and pandas, it does not install any dependencies automatically. This means, you can install the library even if you do not use these libraries, but keep in mind that in this case you cannot use the functions that depend on them.
You can also chose to install the dependencies alongside the library, including the library in the requirements in the form:
cardo-python-utils[django]
Tests
The library has a 100% coverage by tests. If you want to see tests in action:
Inside venv, run pip install -r tests/requirements.txt
Run tests via pytest command
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
File details
Details for the file cardo_python_utils-0.3.6.tar.gz
.
File metadata
- Download URL: cardo_python_utils-0.3.6.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 534a13071880cf284836ab2360d452f7685ceed864b2626862c41221204e6e8f |
|
MD5 | 4fcc3dc13b623b4fc50bc8d45fe84516 |
|
BLAKE2b-256 | 75995f1b0e366467c79d9da2832e855c6374d574ff317a9c0f8bf8867b78b6a3 |
File details
Details for the file cardo_python_utils-0.3.6-py3-none-any.whl
.
File metadata
- Download URL: cardo_python_utils-0.3.6-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83fc6a1b43c441f41b081ef625e0c31f5b53617d6ab6bcdc1866e74bcb0de1f7 |
|
MD5 | 0631c80bd69a478be844fc14296524d2 |
|
BLAKE2b-256 | 420225c5648d141d1b645b7d804cd7b7ac362b25a058b4ab6eea2dc0d6a21e06 |