.. 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
roman
=====
Small helper library to convert arabic to roman numerals.
There are two ways to use this library.
1. Importing it into your application
.. 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
Change log
==========
5.0 (2025-01-15)
----------------
- Drop support for Python 3.7, 3.8.
- Add support for lower case roman numerals.
(`#22 <https://github.com/zopefoundation/roman/pull/22>`_)
4.2 (2024-04-25)
----------------
- 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.
4.1 (2023-05-26)
----------------
- Change license to the Zope Public License (ZPL) version 2.1
(`#15 <https://github.com/zopefoundation/roman/issues/15>`_)
4.0 (2023-02-28)
----------------
- Add support for Python 3.10, 3.11.
- Drop support for Python 2.7, 3.5, 3.6.
3.3 (2020-07-12)
----------------
- added support for Python 3.9
- added CLI command ``roman`` with ``-r/--reverse`` to convert back from Roman
- added simple usage instructions
3.2 (2019-04-14)
----------------
- expanded test coverage
- Added support for 0 -> N
(see https://en.wikipedia.org/wiki/Roman_numerals#Zero)
- Added support for Python 3.8
3.1 (2018-10-24)
----------------
- Added support for Python 3.7.
3.0 (2018-05-28)
----------------
- Added support for Python 3.5, 3.6 and PyPy3.
- Dropped support for Python 2.6 and 3.3.
2.0.0 (2013-02-25)
------------------
- Added Python 3.3 and PyPy support.
- Added tests.
1.4.0 (2009-07-23)
------------------
- Initial PyPI release.
Raw data
{
"_id": null,
"home_page": "https://github.com/zopefoundation/roman",
"name": "roman",
"maintainer": "Zope Foundation and Contributors",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "zope-dev@zope.dev",
"keywords": "roman",
"author": "Mark Pilgrim",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/85/49/b01cf3c88006005613234cfc78b2e371adc3b55fe125641679bca46963f9/roman-5.0.tar.gz",
"platform": null,
"description": ".. image:: https://github.com/zopefoundation/roman/actions/workflows/tests.yml/badge.svg\n :target: https://github.com/zopefoundation/roman/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/roman/badge.svg?branch=master\n :target: https://coveralls.io/github/zopefoundation/roman?branch=master\n\n.. image:: https://img.shields.io/pypi/v/roman.svg\n :target: https://pypi.org/project/roman/\n :alt: Current version on PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/roman.svg\n :target: https://pypi.org/project/roman/\n :alt: Supported Python versions\n\nroman\n=====\n\nSmall helper library to convert arabic to roman numerals.\n\nThere are two ways to use this library.\n\n1. Importing it into your application\n\n.. code-block:: python\n\n import roman\n\n # to roman\n number = int(input('> ')) # 10\n print(roman.toRoman(number))\n\n # from roman\n number = input('> ') # X\n print(roman.fromRoman(number))\n\n\n2. ``roman`` CLI command\n\n.. code-block:: bash\n\n ~$ roman 972\n CMLXXII\n # use the -r/--reverse to convert Roman numerals\n ~$ roman -r CMLXXII\n 972\n # case insensitive\n ~$ roman -r cMlxxii\n 972\n\n\n\nChange log\n==========\n\n5.0 (2025-01-15)\n----------------\n\n- Drop support for Python 3.7, 3.8.\n\n- Add support for lower case roman numerals.\n (`#22 <https://github.com/zopefoundation/roman/pull/22>`_)\n\n\n4.2 (2024-04-25)\n----------------\n\n- Remove overlooked mentions of the Python 2.1.1 license\n (`#17 <https://github.com/zopefoundation/roman/issues/17>`_)\n\n- Add support for Python 3.12 and 3.13.\n\n\n4.1 (2023-05-26)\n----------------\n\n- Change license to the Zope Public License (ZPL) version 2.1\n (`#15 <https://github.com/zopefoundation/roman/issues/15>`_)\n\n\n4.0 (2023-02-28)\n----------------\n\n- Add support for Python 3.10, 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n\n3.3 (2020-07-12)\n----------------\n\n- added support for Python 3.9\n\n- added CLI command ``roman`` with ``-r/--reverse`` to convert back from Roman\n\n- added simple usage instructions\n\n\n3.2 (2019-04-14)\n----------------\n\n- expanded test coverage\n\n- Added support for 0 -> N\n (see https://en.wikipedia.org/wiki/Roman_numerals#Zero)\n\n- Added support for Python 3.8\n\n\n3.1 (2018-10-24)\n----------------\n\n- Added support for Python 3.7.\n\n\n3.0 (2018-05-28)\n----------------\n\n- Added support for Python 3.5, 3.6 and PyPy3.\n\n- Dropped support for Python 2.6 and 3.3.\n\n\n2.0.0 (2013-02-25)\n------------------\n\n- Added Python 3.3 and PyPy support.\n\n- Added tests.\n\n\n1.4.0 (2009-07-23)\n------------------\n\n- Initial PyPI release.\n",
"bugtrack_url": null,
"license": "ZPL 2.1",
"summary": "Integer to Roman numerals converter",
"version": "5.0",
"project_urls": {
"Homepage": "https://github.com/zopefoundation/roman"
},
"split_keywords": [
"roman"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a2c034a98c0bdf3e5846ed5fea15c0a20fae0ad95478013f7582e807da0f7cb5",
"md5": "9683e717c89c3b1bdbe981ff150ade59",
"sha256": "6e1246c0aa9338aa5603e8bf4960f76d5047be1878d8d1ceb0d2c452b5b890e2"
},
"downloads": -1,
"filename": "roman-5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9683e717c89c3b1bdbe981ff150ade59",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 5519,
"upload_time": "2025-01-15T06:43:18",
"upload_time_iso_8601": "2025-01-15T06:43:18.869104Z",
"url": "https://files.pythonhosted.org/packages/a2/c0/34a98c0bdf3e5846ed5fea15c0a20fae0ad95478013f7582e807da0f7cb5/roman-5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8549b01cf3c88006005613234cfc78b2e371adc3b55fe125641679bca46963f9",
"md5": "7318d82e5764e4818d2d8f060d44f0a2",
"sha256": "cb35293c1c4046105fd899194f4f2985f78c955a8b05937f7ab93f3be1660697"
},
"downloads": -1,
"filename": "roman-5.0.tar.gz",
"has_sig": false,
"md5_digest": "7318d82e5764e4818d2d8f060d44f0a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 7664,
"upload_time": "2025-01-15T06:43:21",
"upload_time_iso_8601": "2025-01-15T06:43:21.776797Z",
"url": "https://files.pythonhosted.org/packages/85/49/b01cf3c88006005613234cfc78b2e371adc3b55fe125641679bca46963f9/roman-5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-15 06:43:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zopefoundation",
"github_project": "roman",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "roman"
}