Skip to main content

A Python class to handle decimal dates on the form yyyymmdd.

general

BSD 3 Clause

docs

Documentation Status

code

Using black formatter Commits since latest release Test multiple Python versions
Scrutinizer code quality Scrutinizer coverage Scrutinizer build
OpenSSF

package

PyPI Wheel Supported versions Supported implementations

downloads

Total downloads counter Weekly downloads counter Weekly downloads counter

About

Python decimal date utility to handle integer dates on the form yyyymmdd.

Main Features

Simplifies handling of decimal dates, here being integers on the form yyyymmdd.

See documentation hosted on readthedocs.

As an example loop over all Tuesdays in the month of Valentine’s Day 2024.

>>> from decimaldate import DecimalDateRange
>>>
>>> TUESDAY = 1
>>>
>>> for dd in [
>>>     dd
>>>     for dd in DecimalDateRange.range_month_of_decimal_date(20240214)
>>>     if dd.weekday() == TUESDAY
>>> ]:
>>>     print(repr(dd))
DecimalDate(20240206)
DecimalDate(20240213)
DecimalDate(20240220)
DecimalDate(20240227)

Where to get it

The source code is hosted at GitHub.

An installer for the latest released version is available at PyPI.

python3 -m pip install decimaldate

Dependencies

Python >=3.11

There are no other dependencies for deployment.

Documentation

Documentation is hosted on readthedocs.

Metadata

Release files for decimaldate 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decimaldate 0.3.2
File Size Uploaded
decimaldate-0.3.2.tar.gz 842.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for decimaldate 0.3.2
File Interpreter ABI Platform
decimaldate-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 855.3 kB

Release files / decimaldate-0.3.2.tar.gz

Download URL decimaldate-0.3.2.tar.gz
Size 842.0 kB
Tags Source
SHA-256 checksum
How to use checksums
56bd1b22816a6c3cbaeedea667fa152e6bf76de0a5976dedb6954c657dddebf6
BLAKE2b-256 checksum
How to use checksums
1565e767c1e1b162ba7ca3ebc6bcd6e4bdd48d46a5eb369686d205a746a03631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / decimaldate-0.3.2-py3-none-any.whl

Download URL decimaldate-0.3.2-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a69ddd470ffe2cca0b9c4ccef37eac6d97a41238e0394aeae97d7739e9b7fae4
BLAKE2b-256 checksum
How to use checksums
b10f034a135c9964de69412a8ea2de57f9e04bd72b42e90236671b54ff915c01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page