Integer to Roman numerals converter
Small helper library to convert arabic to roman numerals.
There are two ways to use this library.
Importing it into your application
import roman # to roman number = int(input('> ')) # 10 print(roman.toRoman(number)) # from roman number = input('> ') # X print(roman.fromRoman(number))
roman CLI command
~$ roman 972 CMLXXII # use the -r/--reverse to conver Roman numerals ~$ roman -r CMLXXII 972 # case insensitive ~$ roman -r cMlxxii 972
added support for Python 3.9
added CLI command roman with -r/--reverse to convert back from Roman
added simple usage instructions
expanded test coverage
Added support for 0 -> N (see https://en.wikipedia.org/wiki/Roman_numerals#Zero)
Added support for Python 3.8
Added support for Python 3.7.
Added support for Python 3.5, 3.6 and PyPy3.
Dropped support for Python 2.6 and 3.3.
Added Python 3.3 and PyPy support.
Initial PyPI release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.