pyduration
A calendar unit length utility library for Python.
Installation
With poetry:
poetry add pyduration
Or with pip:
pip3 install pyduration
Usage
Have a look at the documentation.
Basic usage:
from pyduration import Duration
days = Duration('1d')
for day in days.iterate(['2020-01-01', '2020-01-31']):
print(f'{day[0]} - {day[1]}')
Development
Updating Documentation
The module pdoc3 is used to automatically generate documentation. To update the documentation:
- Install
pdoc3if needed withpip3 install pdoc3. - Navigate to project root and install dependencies:
poetry install. - Generate documetation files with:
pdoc3 -o docs --html pyduration. - The new files will be in
docs/pyduration. Move them todocs/and replace existing files.
Metadata
Release files for pyduration 0.1.0
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 |
|---|---|---|---|---|
| pyduration-0.1.0.tar.gz | 9.8 kB | Without provenance | Details for pyduration-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyduration-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyduration-0.1.0-py3-none-any.whl |
Total release size: 19.9 kB
Release files / pyduration-0.1.0.tar.gz
| Download URL | pyduration-0.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8240c7e0b47d2a93776f065c6104494518e57c41b8399653ea84b5925e935d23
|
|
BLAKE2b-256 checksum How to use checksums |
7959e171bb99e9bebb8510d7d391dde1f0062c5b32f4bf0783752c3c9504db78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.6 Darwin/20.1.0
|
Release files / pyduration-0.1.0-py3-none-any.whl
| Download URL | pyduration-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a2691d975772fff31876bc9bb1ed6812e4dc3407542828927306fdea7a876e6
|
|
BLAKE2b-256 checksum How to use checksums |
9de8647efd924b719af4578f2455b91135d4a2244937a47e3a9c64d3c5bfa5e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.6 Darwin/20.1.0
|
Security for pyduration 0.1.0
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.