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.

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyduration-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for pyduration-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8240c7e0b47d2a93776f065c6104494518e57c41b8399653ea84b5925e935d23
MD5 b73b84dcd0a168acd581f29d0d14944b
BLAKE2b-256 7959e171bb99e9bebb8510d7d391dde1f0062c5b32f4bf0783752c3c9504db78

See more details on using hashes here.

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

Hashes for pyduration-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a2691d975772fff31876bc9bb1ed6812e4dc3407542828927306fdea7a876e6
MD5 7ead7c1112424cfdd97093e882920203
BLAKE2b-256 9de8647efd924b719af4578f2455b91135d4a2244937a47e3a9c64d3c5bfa5e5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page