BSD Ports

textproc/py-roman-numerals 4.1.0p0 OpenBSD

manipulate well-formed Roman nunerals

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
textproc, lang/python

Description

A library for manipulating well-formed Roman numerals, supporting integers between 1 and 3,999 (inclusive).

The classical system of roman numerals requires that the same character may not appear more than thrice consecutively, meaning that 'MMMCMXCIX' (3,999) is the largest well-formed Roman numeral. The smallest is 'I' (1), as there is no symbol for zero in Roman numerals.

Both upper- and lower-case formatting of roman numerals are supported, and likewise for parsing strings, although the entire string must be of the same case. Numerals that do not adhere to the classical form are rejected with an InvalidRomanNumeralError.

In the other systems

SystemPortVersion
OpenBSDtextproc/py-roman-numerals4.1.0p0
FreeBSDtextproc/py-roman-numerals4.1.0
HardenedBSDtextproc/py-roman-numerals4.1.0
GhostBSDtextproc/py-roman-numerals4.1.0

Install

Binary package:

pkg_add py3-roman-numerals

From the ports tree:

cd /usr/ports/textproc/py-roman-numerals && make install

Dependencies

Build dependencies 4
Run dependencies 1