Skip to main content

A package to convert user input into datetime.timedelta objects

Project description

Checked with mypy linting: pylint Code style: black

Codecov Checks Type Check and Lint Unit Tests pre-commit.ci status

PyPI version info PyPI supported Python versions Documentation Status Download Counter Latest release

A package to convert user input into datetime.timedelta objects.

PyPI: https://pypi.org/project/time-str/

Docs: https://time-str.readthedocs.io/en/latest/

Installation

You can install released versions of time_str from the Python Package Index via pip or a similar tool:

Stable Release: pip install time_str

Working Version: pip install git+https://github.com/BobDotCom/time_str.git

Usage

import time_str
converter = Converter('11 months 9days 1m 3 sec')
print(converter.timedelta_precise())
print(converter.datetime_precise())

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

time_str-1.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

time_str-1.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file time_str-1.0.0.tar.gz.

File metadata

  • Download URL: time_str-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for time_str-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a875958494e9c8fd0f8b99acd48cd6fe206a94786be1a9a6d49470c9ced03160
MD5 ce0ebb57d93c272a9031707c55e43dce
BLAKE2b-256 4ce7e0bdd2332d74f67e341e4cbc82cea98ff91f0bf55407eec7436dc39bad17

See more details on using hashes here.

File details

Details for the file time_str-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: time_str-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for time_str-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74e11235e6585c99318fe4d3a3dd7e7709ba46c30ce013f0ca1e5ff08ea10530
MD5 3e74c9f655014a052be8f3cf82540a81
BLAKE2b-256 11570e39a2aa7ea369d9317d3d89763ce2ee03bc7355049c02dcacb3fd7dda01

See more details on using hashes here.

Supported by

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