pynumwords

pynumwords transforms numbers into human words, a Python library.
Download

pynumwords Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Adomas Paltanavicius
  • Publisher web site:
  • http://adomas.org/pynumwords/

pynumwords Tags


pynumwords Description

pynumwords transforms numbers into human words, a Python library. 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.


pynumwords Related Software