Metadata-Version: 2.1
Name: time-str
Version: 0.0.3.dev2
Summary: A package to convert user input into datetime.timedelta objects
Home-page: https://github.com/BobDotCom/time_str
Author: BobDotCom
Author-email: bobdotcomgt@gmail.com
License: MIT
Project-URL: Documentation, https://time-str.readthedocs.io/en/latest/index.html
Project-URL: Source, https://github.com/BobDotCom/time_str
Project-URL: Tracker, https://github.com/BobDotCom/time_str/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/x-rst

*******************
Time_str 0.0.3.dev2
*******************

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
#####
.. code-block:: python

    >>> import time_str
    >>> time_str.convert('11 months 9days 1m 3 sec')
    datetime.timedelta(days=345, seconds=63)
    >>> time_str.convert('2 months 3w 1 d 5hour 3 min')
    datetime.timedelta(days=83, seconds=18180)

