Skip to main content

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

  1. 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:

  1. Inside venv, run pip install -r tests/requirements.txt

  2. 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

cardo_python_utils-0.4.2.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

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

cardo_python_utils-0.4.2-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file cardo_python_utils-0.4.2.tar.gz.

File metadata

  • Download URL: cardo_python_utils-0.4.2.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for cardo_python_utils-0.4.2.tar.gz
Algorithm Hash digest
SHA256 572706b59d5dd9ea0e6dce7d670160dd682d1f7b1f8e1d37ffd120c2cb87a263
MD5 bb051add97727514972c76e93d6a689c
BLAKE2b-256 6b04dafabbe474546c34567c09617d8c09fdc6a8c5e9ed8f8e474437cf54e208

See more details on using hashes here.

File details

Details for the file cardo_python_utils-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cardo_python_utils-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df8416cba0e222982edc29ea94bc73b1de33f3f8ebe8e1bb0de4fa6bd0df62ca
MD5 87ce9bd1a563b680d7ee307f6a848d4a
BLAKE2b-256 9a03355aa1a391e62d4aee5140b5b661b29a2223af61d5623ab0df322b84ce9d

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