timeparse
An argparse-extension for parsing command-line arguments as time-, date-, datetime-, or timedelta-objects.
Latest Version
The latest version of this project can be found at : http://github.com/thomst/timeparse.
Installation
Option 1 : Install via pip
pip install timeparse
Option 2 : If you have downloaded the source
python setup.py install
Dokumentaion:
Please visit the documentation on readthedocs.org: https://timeparse.readthedocs.org/en/latest/index.html
Usage
How to use?
>>> import argparse
>>> from timeparse import ParseDatetime
>>>
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--datetime', action=ParseDatetime, nargs='+')
>>>
>>> parser.parse_args("--datetime 2.4.2013 23:02".split()).datetime
datetime.datetime(2013, 4, 2, 23, 2)
Reporting Bugs
Please report bugs at github issue tracker: https://github.com/thomst/timeparse/issues
Metadata
Release files for timeparse 0.5.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| timeparse-0.5.5.tar.gz | 3.0 kB | Without provenance | Details for timeparse-0.5.5.tar.gz |
Release files / timeparse-0.5.5.tar.gz
| Download URL | timeparse-0.5.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1066c90088e39212eb964edf3176d593fa26dcb329430c369259a9a8c8c4e539
|
|
BLAKE2b-256 checksum How to use checksums |
aeb8687c11c33d2a985c9f40f3fccd0d9b836245a49cb8d2b23ca7a0bf672f82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for timeparse 0.5.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.