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


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.3.6.tar.gz (25.8 kB view hashes)

Uploaded Source

Built Distribution

cardo_python_utils-0.3.6-py3-none-any.whl (29.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page