A Python class to handle decimal dates on the form yyyymmdd.
general |
|
|---|---|
docs |
|
code |
|
package |
|
downloads |
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| decimaldate-0.3.2.tar.gz | 842.0 kB | Without provenance | Details for decimaldate-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| decimaldate-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for decimaldate-0.3.2-py3-none-any.whl |
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
|
Security for decimaldate 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.