Skip to main content

Parse time deltas from human-readable strings

Project description

htd

htd stands for human time delta and is a micro-library to parse strings such as 7d4h into timedelta(days=7, hours=4).

Install

pip install htd

With Poetry:

poetry add htd

Usage

import htd

htd.parse("7d")
# => datetime.timedelta(days=7)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htd-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

htd-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file htd-0.0.1.tar.gz.

File metadata

  • Download URL: htd-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for htd-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8cecf2581ddd5c50b65f147329625a192220039170192958202aab89ec705eb8
MD5 71a86402af61b18fdf1feda53962dcb5
BLAKE2b-256 6b09b3581017f85cc073c13e6d50bf4afb3ea432604e066dac779a77f13c4410

See more details on using hashes here.

Provenance

The following attestation bundles were made for htd-0.0.1.tar.gz:

Publisher: publish.yml on Bixoto/htd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file htd-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: htd-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for htd-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4dee0fb8c868faa6f6389fb41a0e38882bce1c1b9418c64d2a55c0b035e2b48
MD5 1bf7feb3d5127b87a62d358b5ce5e6f0
BLAKE2b-256 ca548b52745d2598730a7dd8d10d8fc36c75f40cc4daea859058992fa9660d55

See more details on using hashes here.

Provenance

The following attestation bundles were made for htd-0.0.1-py3-none-any.whl:

Publisher: publish.yml on Bixoto/htd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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