devel/py-pytimeparse 1.1.8_1 FreeBSD
Small Python module to parse various kinds of time expressions
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 15.1 KiB, 97.9 KiB installed
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
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-pytimeparse | 1.1.8_1 |
| DragonFly | devel/py-pytimeparse | 1.1.8_1 |
Install
Binary package:
pkg install py312-pytimeparse
From the ports tree:
cd /usr/ports/devel/py-pytimeparse/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-pytimeparse>0:devel/py-pytimeparse
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.1.8_1 | 1.1.8_1 | 1.1.8 | 1.1.8_1 | 1.1.8_1 |
| FreeBSD:14:quarterly | 1.1.8_1 | 1.1.8_1 | n/a | 1.1.8_1 | 1.1.8_1 |
| FreeBSD:15:latest | 1.1.8_1 | 1.1.8_1 | n/a | 1.1.8_1 | 1.1.8_1 |
| FreeBSD:15:quarterly | 1.1.8_1 | 1.1.8_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.1.8_1 | 1.1.8_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 7
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pytimeparse-1.1.8.tar.gz | 9403 | e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.