Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install eonums

How to install eonums

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install eonums
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.9.0 Available View build log
Windows (64-bit)
0.9.0 Available View build log
Mac OS X (10.5+)
0.9.0 Available View build log
Linux (32-bit)
0.9.0 Available View build log
Linux (64-bit)
0.9.0 Available View build log
 
Author
License
GNU General Public Licence v3 (GPLv3)
Imports
Lastest release
version 0.9.0 on Jan 5th, 2011

Eonums is a simple module providing conversion between normal integer numbers and the corresponding textual expression in the Esperano language. It was mainly developped in order to explore the regularity of Esperanto expressions for big integer numbers.

Names for 10**k (k = 6, 9, 12, ...) like "miliono" (10**6) or "miliardo" (10**9) are chosen from the so-called "Longa Skalo" as described on this page about big numbers (in Esperanto).

The integer numbers eonums can convert to or from such Esperanto expressions can be arbitrarily large, but are limited in practice by the largest number for which there is a name in Esperanto (on the "Longa Skalo")", which is, on the previous page, 10**63 (dekiliardo). Hence, the largest integer you can handle with this module is 10**66 - 1. (This module makes no attempt to extend the Esperanto naming rules by introducing names like "undekiliono", "undekiliardo", "dudekiliono" etc.)

This module can be fully translated automatically to Python 3.0 using its migration tool named 2to3.

Features

  • convert Python integers to Esperanto integer strings (Unicode)
  • convert Esperanto integer strings (Unicode) to Python integers
  • validate Esperanto integer strings (Unicode)
  • handle integers from 0 to 10**66 - 1
  • provide conversion functions and command-line scripts
  • provide a Unittest test suite
  • can be automatically migrated to Python 3.0 using 2to3

Examples

>>> from eonums import int2eo, eo2int, validate_eo
>>>
>>> int2eo(22334455)

System Message: ERROR/3 (<string>, line 46)

Inconsistent literal block quoting.

u'dudek du milionoj tricent tridek kvar mil kvarcent kvindek kvin' >>> >>> eo2int(u"cent dudek tri") 123 >>> validate_eo(u"dudek cent tri") False

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.