Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Wrapper to ConfigParser

Project description

# pywrapper-config
Wrapper to ConfigParser

tests.conf file:
pidfile_timeout = 5

ip = ""
port = "8080"

tests2.conf file:
sleep = 3

null = /dev/null
stdout = /dev/tty
stderr = /dev/tty

port = 9080

How to use pywraper-config:
import pywrapper_config

config = pywrapper_config.Config("./tests.conf")
#Show sections
print("Sections: {0} ".format(config.show_sections()))
#Show server section
print("Items server section: {0} ".format(config.show_item_section("server")))
#Show ip server
print("IP: {0}".format(config.show_value_item("server","ip")))
#Show config file
print("Config file: {0}".format(config.cnffile))
#Change config file
config.cnffile = "./conf/"
print("Config file: {0}".format(config.cnffile))
#Show sections from new config file
print("Secciones: {0}".format(config.show_sections()))


Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pywrapper_config-0.3.2.tar.gz (14.2 kB) Copy SHA256 hash SHA256 Source None Feb 7, 2016 (15.5 kB) Copy SHA256 hash SHA256 Source None Feb 7, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page