duration-parser


Nameduration-parser JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/adriansahlman/duration-parser
SummaryDuration parser.
upload_time2022-12-16 17:07:36
maintainer
docs_urlNone
authorAdrian Sahlman
requires_python>=3.7
licenseMIT
keywords duration parse parser parsing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Duration Parser
A simple python implementation of a duration parser.

## Installation
```shell
pip install duration-parser
```

## Usage

```python
from duration_parser import parse

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/adriansahlman/duration-parser",
    "name": "duration-parser",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "duration parse parser parsing",
    "author": "Adrian Sahlman",
    "author_email": "adrian.sahlman@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6e/bd/49443f3b9b5bf10fabc5249b32f7a487f6029f14440bb56ea1a3b54fb405/duration-parser-1.0.1.tar.gz",
    "platform": null,
    "description": "# Duration Parser\nA simple python implementation of a duration parser.\n\n## Installation\n```shell\npip install duration-parser\n```\n\n## Usage\n\n```python\nfrom duration_parser import parse\n\nseconds = parse('1d2h')\nseconds = parse('2 years 3 weeks')\nseconds = parse('1.234min')\nseconds = parse('1d, 2 weeks')\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Duration parser.",
    "version": "1.0.1",
    "split_keywords": [
        "duration",
        "parse",
        "parser",
        "parsing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "18f9fd4660368bc21fe0c8fe9ed1e2e5",
                "sha256": "aecbb05af545f688f3f6277ab7720e538a8ab834e22c443e2a912f6c7ab6ec5c"
            },
            "downloads": -1,
            "filename": "duration_parser-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "18f9fd4660368bc21fe0c8fe9ed1e2e5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3839,
            "upload_time": "2022-12-16T17:07:35",
            "upload_time_iso_8601": "2022-12-16T17:07:35.836728Z",
            "url": "https://files.pythonhosted.org/packages/e9/5d/d463fb48daf32d39159b36177a4e68b86bad350b7feb6715f1967272c4af/duration_parser-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7492fdee75a92c2f2cc56c064c84a9cd",
                "sha256": "2d5c465aeccd467f5c981fa78d69edd13459d6cc8ce3c751e12cbe40742163f3"
            },
            "downloads": -1,
            "filename": "duration-parser-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7492fdee75a92c2f2cc56c064c84a9cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3729,
            "upload_time": "2022-12-16T17:07:36",
            "upload_time_iso_8601": "2022-12-16T17:07:36.751663Z",
            "url": "https://files.pythonhosted.org/packages/6e/bd/49443f3b9b5bf10fabc5249b32f7a487f6029f14440bb56ea1a3b54fb405/duration-parser-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-16 17:07:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "adriansahlman",
    "github_project": "duration-parser",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "duration-parser"
}
        
Elapsed time: 0.08794s