Skip to main content

Roman Numeral Conversion Utilities

Project description

This is a utility module for converting from and to Roman numerals. It supports numbers upto 3,999,999, using the vinculum to denote multiplication by 1000. (i.e.: X is 10 while is 10000.) The only letter that this does not apply to is I, as M already existed for 1000.

Quick Start

Install the package:

pip3 install romanicize

Once installed, a command line utility is available to your shell:

$ romanicize 2021
MMXXI
$ romanicize MMXIX
2019

With a Python script, convert from an integer to a Roman numeral:

from romanicize import to_numeral

print(to_numeral(2021))  # Outputs: MMXXI

Within a Python script, convert from a Roman numeral to an integer:

from romanicize import to_int

print(to_int('MV̅DLXXVIII'))  # Outputs: 4578

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

romanicize-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file romanicize-0.1.0.tar.gz.

File metadata

  • Download URL: romanicize-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.5

File hashes

Hashes for romanicize-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc821b2cdf94bc14b5a80085528812475cb3cb1254fb04847f366ff49168733a
MD5 4a436544f6592fb7a2d7c63b10a4a28f
BLAKE2b-256 4076e82ce6df00e3093fb08dee5e42f2364f137c22a40fd5e452b3458333a782

See more details on using hashes here.

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