Skip to main content

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)
u'dudek du milionoj tricent tridek kvar mil kvarcent kvindek kvin'
>>>
>>> eo2int(u"cent dudek tri")
123
>>> validate_eo(u"dudek cent tri")
False

Release files for eonums 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eonums 0.9.0
File Size Uploaded
eonums-0.9.0.tar.gz 31.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eonums 0.9.0
File Interpreter ABI Platform
eonums-0.9.0-py2.5.egg Legacy Egg format - - Details

Total release size: 43.6 kB

Release files / eonums-0.9.0.tar.gz

Download URL eonums-0.9.0.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
21dfa8df2ed2e13ec7039d0f7aa6e4bf280e80ec67e7cbb71cf181ad7fd6466e
BLAKE2b-256 checksum
How to use checksums
700b8783adf237cf5cf79802e10aab4d365a8994c82fa6e14e8b47c0f368a370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / eonums-0.9.0-py2.5.egg

Download URL eonums-0.9.0-py2.5.egg
Size 12.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
c0c5ded181764c7dc3eed70bc83118b2a8dca5221f7fb514db638bd70cf38653
BLAKE2b-256 checksum
How to use checksums
4ea81a278793a9e61e5b839e8dc52ccac9c477174d4c42f535a681ac634b388b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page