
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
.. image:: https://github.com/zopefoundation/roman/actions/workflows/tests.yml/badge.svg :target: https://github.com/zopefoundation/roman/actions/workflows/tests.yml
.. image:: https://coveralls.io/repos/github/zopefoundation/roman/badge.svg?branch=master :target: https://coveralls.io/github/zopefoundation/roman?branch=master
.. image:: https://img.shields.io/pypi/v/roman.svg :target: https://pypi.org/project/roman/ :alt: Current version on PyPI
.. image:: https://img.shields.io/pypi/pyversions/roman.svg :target: https://pypi.org/project/roman/ :alt: Supported Python versions
Small helper library to convert arabic to roman numerals.
There are two ways to use this library.
.. code-block:: python
import roman
# to roman
number = int(input('> ')) # 10
print(roman.toRoman(number))
# from roman
number = input('> ') # X
print(roman.fromRoman(number))
2. roman
CLI command
.. code-block:: bash
~$ roman 972
CMLXXII
# use the -r/--reverse to convert Roman numerals
~$ roman -r CMLXXII
972
# case insensitive
~$ roman -r cMlxxii
972
Drop support for Python 3.7, 3.8.
Add support for lower case roman numerals.
(#22 <https://github.com/zopefoundation/roman/pull/22>
_)
Remove overlooked mentions of the Python 2.1.1 license
(#17 <https://github.com/zopefoundation/roman/issues/17>
_)
Add support for Python 3.12 and 3.13.
#15 <https://github.com/zopefoundation/roman/issues/15>
_)Add support for Python 3.10, 3.11.
Drop support for Python 2.7, 3.5, 3.6.
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.5, 3.6 and PyPy3.
Dropped support for Python 2.6 and 3.3.
Added Python 3.3 and PyPy support.
Added tests.
FAQs
Integer to Roman numerals converter
We found that roman demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.