Metadata-Version: 2.1
Name: numeral-system-py
Version: 0.2.0
Summary: Package which contains function for converting between different number system
Home-page: https://github.com/zifter/numeral-system-py
Author: Oleg Strokachuk
Author-email: zifter.ai@gmail.com
License: MIT
Keywords: roman,positional,ui,number,numeral,system
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing
Requires-Python: >= 2.7
Description-Content-Type: text/x-rst
Requires-Dist: backports.functools-lru-cache

|License| |Release| |Supported versions| |Docs| |Code Coverage| |Build status Appveyor| |Build Status Travis CI| |Contact| |Blog|

numeral-system-py
=================

Convert from one numeric system to other in python.

Supports following:

* roman numerals
* positional numerals (like binary, arabic (decimal), hexadecimal and others)

Example of usage
----------------
Roman
^^^^^
.. code:: python

    >>> import numeral_system
    >>> numeral_system.roman.encode(7)
    'VII'
    >>> numeral_system.roman.decode('XXII')
    22

Positional
^^^^^^^^^^
.. code:: python

    >>> import numeral_system
    >>> numeral_system.positional.encode(42, 2)
    '101010'
    >>> numeral_system.positional.encode(12, 3)
    '110'
    >>> numeral_system.positional.decode(101, 2)
    5
    >>> numeral_system.positional.decode('AF', 16)
    175

.. |Release| image:: https://img.shields.io/github/release/zifter/numeral-system-py.svg
   :target: https://github.com/zifter/numeral-system-py/releases
.. |Supported versions| image:: https://img.shields.io/pypi/pyversions/numeral-system.svg
   :target: https://pypi.org/project/numeral-system/
.. |Code Coverage| image:: https://codecov.io/gh/zifter/numeral-system-py/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/zifter/numeral-system-py
.. |Build status Appveyor| image:: https://ci.appveyor.com/api/projects/status/github/zifter/numeral-system-py?branch=master&svg=true
    :target: https://ci.appveyor.com/project/zifter/numeral-system-py
.. |Build Status Travis CI| image:: https://travis-ci.org/zifter/numeral-system-py.svg?branch=master
    :target: https://travis-ci.org/zifter/numeral-system-py
.. |Contact| image:: https://img.shields.io/badge/telegram-write%20me-blue.svg
    :target:  https://t.me/zifter
.. |Blog| image:: https://img.shields.io/badge/site-my%20blog-yellow.svg
    :target:  https://zifter.github.io/
.. |License| image:: https://img.shields.io/badge/License-MIT-yellow.svg
    :target:  https://opensource.org/licenses/MIT
.. |Docs| image:: https://readthedocs.org/projects/numeral-system-py/badge/?version=latest&style=flat
    :target:  https://numeral-system-py.readthedocs.io/en/latest/



