Skip to main content

pyduration

Tests

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:

  1. Install pdoc3 if needed with pip3 install pdoc3.
  2. Navigate to project root and install dependencies: poetry install.
  3. Generate documetation files with: pdoc3 -o docs --html pyduration.
  4. The new files will be in docs/pyduration. Move them to docs/ 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)

Source distribution for pyduration 0.1.0
File Size Uploaded
pyduration-0.1.0.tar.gz 9.8 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

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