.. image:: https://travis-ci.com/zopefoundation/roman.svg?branch=master
:target: https://travis-ci.com/zopefoundation/roman
.. 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
==========
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.7",
"maintainer_email": "zope-dev@zope.dev",
"keywords": "roman",
"author": "Mark Pilgrim",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/2d/be/4fa4fbe13def6194e76270bd213d8924346e0a30be8e006d898359db1a00/roman-4.2.tar.gz",
"platform": null,
"description": ".. image:: https://travis-ci.com/zopefoundation/roman.svg?branch=master\n :target: https://travis-ci.com/zopefoundation/roman\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\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": "4.2",
"project_urls": {
"Homepage": "https://github.com/zopefoundation/roman"
},
"split_keywords": [
"roman"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "87e79206aa493875e116272aa71d152c6ea1570cad7395a904fea11050a47fbd",
"md5": "7fb69b8d1fd01adde76f3b983b9c0927",
"sha256": "dc3564330fba3cd06b108edc694500609830169e3479706eb1ee7f0c197e4b6c"
},
"downloads": -1,
"filename": "roman-4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7fb69b8d1fd01adde76f3b983b9c0927",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5479,
"upload_time": "2024-04-25T05:25:26",
"upload_time_iso_8601": "2024-04-25T05:25:26.545132Z",
"url": "https://files.pythonhosted.org/packages/87/e7/9206aa493875e116272aa71d152c6ea1570cad7395a904fea11050a47fbd/roman-4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2dbe4fa4fbe13def6194e76270bd213d8924346e0a30be8e006d898359db1a00",
"md5": "10b78af7bc8205b103d9463a6e918f69",
"sha256": "05f335a1b2b0824f827ed42fff84b35909aab9013799145ed4508bdd4fa3b385"
},
"downloads": -1,
"filename": "roman-4.2.tar.gz",
"has_sig": false,
"md5_digest": "10b78af7bc8205b103d9463a6e918f69",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 7339,
"upload_time": "2024-04-25T05:25:28",
"upload_time_iso_8601": "2024-04-25T05:25:28.538481Z",
"url": "https://files.pythonhosted.org/packages/2d/be/4fa4fbe13def6194e76270bd213d8924346e0a30be8e006d898359db1a00/roman-4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-25 05:25:28",
"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"
}