Skip to main content

For when dates aren't dates

Project description

Undated - “For when dates aren’t dates”

CodeFactor CodeQL pylint unittest Documentation Status

undated is a Python package that simplifies the process of working with dates that are stored as numbers or strings.

Whilst datatypes should fit their purpose, date types do not always transport well and are converted to a number or string, such as ISO 8601, for transportation in text based files like json or csv.

undated provides:
  • Functionality to handle dates that are stored in number formats

  • Ability to derive the date format from provided data

  • Direct manipulation to avoid costly type conversions

Inception

undated came about due to the need to process large amounts of data from various sources. These were received as csv files where the format of the date was dependant on either the country of origin, source system, or which ever way the wind blew. One solution was required to enable big data to be processed regardless of its date formatting… undated.

Concept

undated is a lightweight performance tunded package envisaged to be used either:
  • when processing data from various sources where the date format is unknown but consistent throughout the data

  • or when dates have been stored as integers in the Ymd format and performance is a consideration.

For other scenarios consider using a feature rich package such as dateutils

Supported Versions

Supported on Python 3.7, 3.8, 3.9 and 3.10

Installation

The package can be found on GitHub and PyPI, so naturally it can be installed with pip

pip install undated

Requirements

The undated package itself has no requirements.

To use the unittests and timings modules dateutils is required.

pip install python-dateutil>=2.8.2

To generate the Sphinx documentation, Sphinx and the RTD template are required.

pip install Sphinx>=5.0.2
pip install sphinx-rtd-theme>=1.0.0

Licence

This software is released under the MIT licence

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

undated-1.0.8.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

undated-1.0.8-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file undated-1.0.8.tar.gz.

File metadata

  • Download URL: undated-1.0.8.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.9

File hashes

Hashes for undated-1.0.8.tar.gz
Algorithm Hash digest
SHA256 60b0598bb452291d8ef93d556fb17763abe9c471f684f8bc364fd473c3420ac0
MD5 3f87dc75a98bf9836475eba9fceaa448
BLAKE2b-256 d6350532dd5e3323a53ea15b41d2beec11d0840ef7d5255fd34c5f79a25966e9

See more details on using hashes here.

File details

Details for the file undated-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: undated-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.9

File hashes

Hashes for undated-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8251e05cad37ef6d1c06c27952d586526853f2a059c19e21d43b4f8fe502185c
MD5 c8ee697fcc997672b663116f418de4d1
BLAKE2b-256 2e93b8d376004383f66ad684bcfcb2633586d65c32ac8a71a55d566224718fb0

See more details on using hashes here.

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