Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Text Editing&Processing > Others

    pynumwords r39

    Download button

    No screenshots available
    Downloads: 350  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adomas Paltanavicius | More programs
    LGPL / FREE
    December 20th, 2006, 15:14 GMT
    ROOT / Text Editing&Processing / Others

     Read user reviews (0)  Refer to a friend  Subscribe

    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.

    Product's homepage

      


    TAGS:

    transform numbers | numbers to words | Python library | pynumwords | transform | numbers

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM