Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 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 > Programming > Libraries

    fixed 1.0

    Download button

    No screenshots available
    Downloads: 64  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Withers | More programs
    MIT/X Consortium Lic... / FREE
    September 4th, 2012, 15:45 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    fixed description

    A library for quickly processing fixed width files

    fixed is a Python module that provides tools for building fast parsers of files composed of fields width records where one of the fields in the record specifies what type of record the line is.

    The parsers built using this package yield named tuples containing the information in each row.

    The parsers are specified using a simple and succinct declarative style:

    from fixed import Parser, Record, Field, Discriminator, Skip

    class Header(Record):
     type = Discriminator('H')
     row_count = Field(8, int)

    class Data(Record):
     type = Discriminator('D')
     source = Field(5)
     junk = Skip(10)
     destination = Field(5)

     parser = Parser(Header, Data)



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    parser builder | Python library | Python | parser | builder

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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