https://github.com/ouahibelhanchi/pytimeparser
Basic Python module to parse time expressions.
https://github.com/ouahibelhanchi/pytimeparser
expression-parser humanized-values natural natural-language parsers python time
Last synced: 10 days ago
JSON representation
Basic Python module to parse time expressions.
- Host: GitHub
- URL: https://github.com/ouahibelhanchi/pytimeparser
- Owner: ouahibelhanchi
- License: mit
- Created: 2018-04-11T18:54:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T22:23:23.000Z (about 1 year ago)
- Last Synced: 2025-08-30T22:35:59.576Z (5 months ago)
- Topics: expression-parser, humanized-values, natural, natural-language, parsers, python, time
- Language: Python
- Size: 123 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
==============================
Python time expressions parser
==============================
.. image:: https://img.shields.io/pypi/v/pytimeparser.svg
:target: https://pypi.python.org/pypi/pytimeparser
.. image:: https://img.shields.io/travis/ouahibelhanchi/pytimeparser.svg
:target: https://travis-ci.org/ouahibelhanchi/pytimeparser
.. image:: https://readthedocs.org/projects/pytimeparser/badge/?version=latest
:target: https://pytimeparser.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Basic Python module to parse time expressions.
* Free software: MIT license
* Documentation: https://pytimeparser.readthedocs.io.
Usage
-----
To use Python time expressions parser in a project::
import pytimeparser
output_timedelta = pytimeparser.parse('3 days 5:12:43.123')
print(output_timedelta.total_seconds())
Credits
-------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage