Skip to main content

Python Roman Numeral Parsing

Project description

rom

This is a basic Roman numeral manipulation library written in Python.

It is capable of parsing Arabic numerals into Roman numerals, as well as generating Roman numerals from Arabic numerals.

Installation

pip3 install gnboorse-rom

Usage

>>> from rom import rom
>>> rom(12)
XII
>>> int(rom(12))
12
>>> int(rom('xlvi'))
46
>>> rom('XLVI', caps=False)
xlvi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gnboorse-rom-0.0.1.tar.gz (8.0 kB view hashes)

Uploaded source

Built Distribution

gnboorse_rom-0.0.1-py3-none-any.whl (7.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page