BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-pytimeparse1.1.8_1
DragonFlydevel/py-pytimeparse1.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.1.8_11.1.8_11.1.81.1.8_11.1.8_1
FreeBSD:14:quarterly1.1.8_11.1.8_1n/a1.1.8_11.1.8_1
FreeBSD:15:latest1.1.8_11.1.8_1n/a1.1.8_11.1.8_1
FreeBSD:15:quarterly1.1.8_11.1.8_1n/an/an/a
FreeBSD:16:latest1.1.8_11.1.8_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
pytimeparse-1.1.8.tar.gz9403e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.