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
pdoc3
if 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 hashes)
Built Distribution
pyduration-0.1.0-py3-none-any.whl
(10.1 kB
view hashes)
Close
Hashes for pyduration-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a2691d975772fff31876bc9bb1ed6812e4dc3407542828927306fdea7a876e6 |
|
MD5 | 7ead7c1112424cfdd97093e882920203 |
|
BLAKE2b-256 | 9de8647efd924b719af4578f2455b91135d4a2244937a47e3a9c64d3c5bfa5e5 |