1Metadata-Version: 2.1 2Name: roman 3Version: 3.3 4Summary: Integer to Roman numerals converter 5Home-page: https://github.com/zopefoundation/roman 6Author: Mark Pilgrim 7Author-email: f8dy@diveintopython.org 8License: Python 2.1.1 9Description: .. image:: https://travis-ci.org/zopefoundation/roman.svg?branch=master 10 :target: https://travis-ci.org/zopefoundation/roman 11 12 .. image:: https://coveralls.io/repos/github/zopefoundation/roman/badge.svg?branch=master 13 :target: https://coveralls.io/github/zopefoundation/roman?branch=master 14 15 .. image:: https://img.shields.io/pypi/v/roman.svg 16 :target: https://pypi.org/project/roman/ 17 :alt: Current version on PyPI 18 19 .. image:: https://img.shields.io/pypi/pyversions/roman.svg 20 :target: https://pypi.org/project/roman/ 21 :alt: Supported Python versions 22 23 roman 24 ===== 25 26 Small helper library to convert arabic to roman numerals. 27 28 There are two ways to use this library. 29 30 1. Importing it into your application 31 32 .. code-block:: python 33 34 import roman 35 36 # to roman 37 number = int(input('> ')) # 10 38 print(roman.toRoman(number)) 39 40 # from roman 41 number = input('> ') # X 42 print(roman.fromRoman(number)) 43 44 45 2. ``roman`` CLI command 46 47 .. code-block:: bash 48 49 ~$ roman 972 50 CMLXXII 51 # use the -r/--reverse to conver Roman numerals 52 ~$ roman -r CMLXXII 53 972 54 # case insensitive 55 ~$ roman -r cMlxxii 56 972 57 58 59 60 Change log 61 ========== 62 63 3.3 (2020-07-12) 64 ---------------- 65 66 - added support for Python 3.9 67 68 - added CLI command ``roman`` with ``-r/--reverse`` to convert back from Roman 69 70 - added simple usage instructions 71 72 73 3.2 (2019-04-14) 74 ---------------- 75 76 - expanded test coverage 77 78 - Added support for 0 -> N 79 (see https://en.wikipedia.org/wiki/Roman_numerals#Zero) 80 81 - Added support for Python 3.8 82 83 84 3.1 (2018-10-24) 85 ---------------- 86 87 - Added support for Python 3.7. 88 89 90 3.0 (2018-05-28) 91 ---------------- 92 93 - Added support for Python 3.5, 3.6 and PyPy3. 94 95 - Dropped support for Python 2.6 and 3.3. 96 97 98 2.0.0 (2013-02-25) 99 ------------------ 100 101 - Added Python 3.3 and PyPy support. 102 103 - Added tests. 104 105 106 1.4.0 (2009-07-23) 107 ------------------ 108 109 - Initial PyPI release. 110 111Keywords: roman 112Platform: UNKNOWN 113Classifier: Development Status :: 5 - Production/Stable 114Classifier: Intended Audience :: Developers 115Classifier: Programming Language :: Python 116Classifier: Programming Language :: Python :: 2 117Classifier: Programming Language :: Python :: 2.7 118Classifier: Programming Language :: Python :: 3 119Classifier: Programming Language :: Python :: 3.5 120Classifier: Programming Language :: Python :: 3.6 121Classifier: Programming Language :: Python :: 3.7 122Classifier: Programming Language :: Python :: 3.8 123Classifier: Programming Language :: Python :: 3.9 124Classifier: Programming Language :: Python :: Implementation :: CPython 125Classifier: Programming Language :: Python :: Implementation :: PyPy 126Classifier: License :: OSI Approved :: Python Software Foundation License 127Classifier: Programming Language :: Python 128Classifier: Natural Language :: English 129Classifier: Operating System :: OS Independent 130Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.* 131Description-Content-Type: text/x-rst 132