This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Converts Numbers (Integers and Floats) to Greek Words.

Project Description

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

from numtogreek import n2g

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

n2g(1234.09)

n2g(99999999.99)

n2g(9.00)

From Python Console

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

Release History

This version
History Node

1.0.0

History Node

0.20.10

History Node

0.20.02

History Node

0.20.1

History Node

0.20.0

History Node

0.11.0b0

History Node

0.10.0b0

History Node

0.9.8b0

History Node

0.9.5b7

History Node

0.9.5b0

History Node

0.9.1b1

History Node

0.9.0b1

History Node

0.9.0b0

History Node

0.8.0b7

History Node

0.8.0b6

History Node

0.8.0b5

History Node

0.8.0b4

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
numtogreek-1.0.0.tar.gz (23.3 kB) Copy SHA256 Checksum SHA256 Source Apr 13, 2015
numtogreek-1.0.0.zip (30.4 kB) Copy SHA256 Checksum SHA256 Source Apr 13, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting