A calendar unit length utility library.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyduration-0.1.0.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyduration-0.1.0.tar.gz.
File metadata
- Download URL: pyduration-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.6 Darwin/20.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8240c7e0b47d2a93776f065c6104494518e57c41b8399653ea84b5925e935d23
|
|
| MD5 |
b73b84dcd0a168acd581f29d0d14944b
|
|
| BLAKE2b-256 |
7959e171bb99e9bebb8510d7d391dde1f0062c5b32f4bf0783752c3c9504db78
|
File details
Details for the file pyduration-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyduration-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.6 Darwin/20.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a2691d975772fff31876bc9bb1ed6812e4dc3407542828927306fdea7a876e6
|
|
| MD5 |
7ead7c1112424cfdd97093e882920203
|
|
| BLAKE2b-256 |
9de8647efd924b719af4578f2455b91135d4a2244937a47e3a9c64d3c5bfa5e5
|