Metadata-Version: 2.0
Name: numtogreek
Version: 1.0.1
Summary: Converts Numbers (Integers and Floats) to Greek Words.
Home-page: https://bitbucket.org/kamar/numtogreek
Author: kamar
Author-email: marmako@gmail.com
License: GNU General Public License v3 (GPLv3)
Description-Content-Type: UNKNOWN
Keywords: numbers,convert,greek,words,convert number,greek words
Platform: Linux
Platform: Windows
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Other Audience
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: Greek
Classifier: Operating System :: Microsoft
Classifier: Operating System :: Microsoft :: Windows :: Windows 7
Classifier: Operating System :: Microsoft :: Windows :: Windows 8
Classifier: Operating System :: Microsoft :: Windows :: Windows 8.1
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5

Numbers To Greek
================

Converts Numbers to Greek words.


Installation
------------

    - **With pip:**

        - ``pip install numtogreek`` 

    - **Running setup:**

        - ``wget -c https://pypi.python.org/packages/source/n/numtogreek/numtogreek-0.8.0b2.tar.gz``

        - ``tar zxfv numtogreek-x.y.z.tar.gz cd numtogreek-x.y.z.tar.gz``

        - ``python3 setup.py install`` as administrator, or ``sudo python3 setup.py install``

Restrictions:
-------------

   - Float numbers, only with to two decimal digits. More than two digits, will be truncated. 
   - Float numbers max = 99,999,999,999,999.98
   - Integer numbers max = 999,999,999,999,999,999,999,999

Usage
-----

From Script
~~~~~~~~~~~

.. code:: python

    from numtogreek import n2g

    for i in range(20):
        n2g(i)

    n2g(1234.09)

    n2g(99999999.99)

    n2g(9.00)



From Python Console
~~~~~~~~~~~~~~~~~~~

.. code:: python

    >>> from numtogreek import n2g
    >>> n2g(848922.01)
    'Οκτακόσιες Σαράντα Οκτώ Χιλιάδες Εννιακόσια Είκοσι Δύο και Ένα'
    >>> n2g(848922.01, True)
    'Οκτακόσιες Σαράντα Οκτώ Χιλιάδες Εννιακόσια Είκοσι Δύο Ευρώ  και Ένα Λεπτό'
    >>> n2g(848922.01, True, 'lower')
    'οκτακόσιες σαράντα οκτώ χιλιάδες εννιακόσια είκοσι δύο ευρώ  και ένα λεπτό'
    >>> n2g(848922.01, True, 'upper')
    'ΟΚΤΑΚΌΣΙΕΣ ΣΑΡΆΝΤΑ ΟΚΤΏ ΧΙΛΙΆΔΕΣ ΕΝΝΙΑΚΌΣΙΑ ΕΊΚΟΣΙ ΔΎΟ ΕΥΡΏ  ΚΑΙ ΈΝΑ ΛΕΠΤΌ'
    >>>

