Skip to main content

Duration Parser

A simple python implementation of a duration parser.

Installation

pip install duration-parser

Usage

from duration_parser import parse

seconds = parse('1d2h')
seconds = parse('2 years 3 weeks')
seconds = parse('1.234min')
seconds = parse('1d, 2 weeks')

Metadata

Release files for duration-parser 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duration-parser 1.0.1
File Size Uploaded
duration-parser-1.0.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for duration-parser 1.0.1
File Interpreter ABI Platform
duration_parser-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / duration-parser-1.0.1.tar.gz

Download URL duration-parser-1.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2d5c465aeccd467f5c981fa78d69edd13459d6cc8ce3c751e12cbe40742163f3
BLAKE2b-256 checksum
How to use checksums
6ebd49443f3b9b5bf10fabc5249b32f7a487f6029f14440bb56ea1a3b54fb405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / duration_parser-1.0.1-py3-none-any.whl

Download URL duration_parser-1.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aecbb05af545f688f3f6277ab7720e538a8ab834e22c443e2a912f6c7ab6ec5c
BLAKE2b-256 checksum
How to use checksums
e95dd463fb48daf32d39159b36177a4e68b86bad350b7feb6715f1967272c4af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

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