roman


Nameroman JSON
Version 4.1 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/roman
SummaryInteger to Roman numerals converter
upload_time2023-05-26 08:25:31
maintainerZope Foundation and Contributors
docs_urlNone
authorMark Pilgrim
requires_python>=3.7
licenseZPL 2.1
keywords roman
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. 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.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": "",
    "download_url": "https://files.pythonhosted.org/packages/32/0c/10c242792e9c857d5d8df19780abec0f241c8a3d9631cccbce16d0f1c769/roman-4.1.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.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\n\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Integer to Roman numerals converter",
    "version": "4.1",
    "project_urls": {
        "Homepage": "https://github.com/zopefoundation/roman"
    },
    "split_keywords": [
        "roman"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b3e7533d5082852a3e0001392b421172d1659a8dc81dad9c41d378adf891d689",
                "md5": "309f20e43439e16e6adef935c2937df9",
                "sha256": "f131fd5eee3510f6173b825404eb97875a6c1925f73a2d7d48cfc67823a67c3c"
            },
            "downloads": -1,
            "filename": "roman-4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "309f20e43439e16e6adef935c2937df9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5490,
            "upload_time": "2023-05-26T08:25:29",
            "upload_time_iso_8601": "2023-05-26T08:25:29.342461Z",
            "url": "https://files.pythonhosted.org/packages/b3/e7/533d5082852a3e0001392b421172d1659a8dc81dad9c41d378adf891d689/roman-4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "320c10c242792e9c857d5d8df19780abec0f241c8a3d9631cccbce16d0f1c769",
                "md5": "6bc937a03245abdfb5a71b67050425f9",
                "sha256": "4da8a200529a730822a27f1704b3ac70bc907141d3bc558115fb8e36af13b412"
            },
            "downloads": -1,
            "filename": "roman-4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6bc937a03245abdfb5a71b67050425f9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7005,
            "upload_time": "2023-05-26T08:25:31",
            "upload_time_iso_8601": "2023-05-26T08:25:31.645070Z",
            "url": "https://files.pythonhosted.org/packages/32/0c/10c242792e9c857d5d8df19780abec0f241c8a3d9631cccbce16d0f1c769/roman-4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-26 08:25:31",
    "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"
}
        
Elapsed time: 0.07851s