pynumwords r39

pynumwords transforms numbers into human words, a Python library.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
LGPL (GNU Lesser General Public License) 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Adomas Paltanavicius
HOMEPAGE:
adomas.org
CATEGORY:
ROOT \ Text Editing&Processing \ Others
pynumwords transforms numbers into human words, a Python library.

pynumwords demonstration enter a number here Try

This library currently includes engines for these writing systems:

N-base (binary, octal, decimal, hexademical)
Fractional numbers
Morse
Roman
English
German (thanks Diedrich Vorberg for contributing this)
Lithuanian
Chinese (both traditional and simplified)
Hebrew
I would greatly appreciate fixes to current engines (or bug reports), and new engine additions.

This is how you can use pynumwords in your code:

import pynumwords
en = pynumwords.find('english')
if en:
try:
print en(123456)
except ValueError:
...

If you know about validity, this is fine:

val = pynumwords.find('roman')(123)

pytimeago is licenced under LGPL. I'd be happy to hear if you use this in your software. Note that language module(s) can also be taken standalone to other projects, if desired.

Last updated on December 20th, 2006

#transform numbers #numbers to words #Python library #pynumwords #transform #numbers #words

Add your review!

SUBMIT