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 > Programming > Libraries

    PyerConf 0.1.0

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Guillaume Bour | More programs
    GPL v3 / FREE
    October 27th, 2011, 12:14 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PyerConf description

    Pythonic Hierarchical Configuration Parser

    PyerConf is a Pythonic hierarchical configuration parser.

    Sample config:

    # a value is set with: key : value
    # values are typed. allowed types are:
    # - string (simple or double quotes)
    # - boolean (True or False. is case sensitive)
    # - integer

    strval : 'this is a string'
    boolval: True
    intval : 142

    # you can define hierarchies with dictionaries
    # ! no comma to se
    orgchart : {
     boss : 'Mr Goldmine'

     head_office : {
     VP : 'Miz dho'
     CTO : 'John Bugs'
     }
    }


    Loaded from python:

    >>> import pyerconf
    >>> cfg = pyerconf.Config('./sample.cfg')
    >>> print cfg.strval
    this is a string
    >>> print cfg.orgchart.boss
    Mr Goldmine
    >>> print cfg.orgchart.head_office
    {'VP': 'Miz dho', 'CTO': 'John Bugs'}

    >>> print cfg.foobar
    AttributeError



    Product's homepage

    Requirements:

    · Python
    · SimpleParse

      


    TAGS:

    hierarchical configuration | configuration parser | Python | hierarchical | configuration

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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