configpy

Configuration file reading in Python made easy
Download

configpy Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • John Keyes
  • Publisher web site:
  • http://code.google.com/u/johnkeyes/

configpy Tags


configpy Description

Configuration file reading in Python made easy configpy is a Python tool that makes reading configuration files very easy. With support for look-ahead and look-behind variable interpolation, native types such as int, float, dict and list configpy should satisfy your configuration file parsing needs.Example:from configpy import Configcfg = """ nums = nando = "Nando" names = planets = { 'planet': '${red_planet}' }red_planet = 'mars'num_items = 5item_cost = 1.99"""config = Config(cfg)print sum(config.nums) # prints 10print config.planets # prints "mars"config.names.sort()print config.names # prints print config.num_items * config.item_cost # prints 9.95 Requirements: · Python


configpy Related Software