Port details on branch 2022Q2 |
- py-pytimeparse Small Python module to parse various kinds of time expressions
- 1.1.8 devel =0 1.1.8Version of this port present on the latest quarterly branch.
- Maintainer: dvl@FreeBSD.org
- Port Added: 2015-09-04 17:18:28
- Last Update: 2023-06-27 19:34:34
- Commit Hash: 3d9a815
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/wroberts/pytimeparse
- Description:
- The single function pytimeparse.timeparse.timeparse, defined in the library,
(also available as pytimeparse.parse) parses time expressions like the following:
32m
2h32m
3d2h32m
1w3d2h32m
...
It returns the time as a number of seconds (an integer value if possible, otherwise a floating-point number):
>>> from pytimeparse import parse
>>> parse('1.2 minutes')
72
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}pytimeparse>0:devel/py-pytimeparse@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-pytimeparse/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-pytimeparse
- pkg install py39-pytimeparse
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-pytimeparse listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-pytimeparse
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1655209557
SHA256 (pytimeparse-1.1.8.tar.gz) = e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a
SIZE (pytimeparse-1.1.8.tar.gz) = 9403
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Run
-
- textproc/py-agate
Configuration Options:
- No options to configure
- Options name:
- devel_py-pytimeparse
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|