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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file gnboorse-rom-0.0.1.tar.gz.

File metadata

  • Download URL: gnboorse-rom-0.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for gnboorse-rom-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8e2d3e0d13491841fb67a4012d6f8fa49b92b608a33e282a11581a1aaf4f4cf5
MD5 0154f4cb1ca36597832239a95d233ff7
BLAKE2b-256 825c429d71ee209975913490f38378654ab2f6566c58b2f776d060c0e4b818e0

See more details on using hashes here.

File details

Details for the file gnboorse_rom-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gnboorse_rom-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for gnboorse_rom-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5982f6ecd5de43c8159e106db32648641fd108159c36e4484a36c1510cfdf3df
MD5 f94078e369577b2bdf40f9c579d8eaf3
BLAKE2b-256 0e4e9ea5ef5341940c67f0dc11efcae924d8f9b4ea6f8ebb331b451af5853d90

See more details on using hashes here.

Supported by

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