Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Wrapper to ConfigParser

Project Description
# pywrapper-config
Wrapper to ConfigParser

tests.conf file:
```
[time]
pidfile_timeout = 5

[server]
ip = "127.0.0.1"
port = "8080"
```

tests2.conf file:
```
[time]
sleep = 3

[paths]
null = /dev/null
stdout = /dev/tty
stderr = /dev/tty

[conex]
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/tests2.py"
print("Config file: {0}".format(config.cnffile))
#Show sections from new config file
print("Secciones: {0}".format(config.show_sections()))

```
Release History

Release History

This version
History Node

0.3.2

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pywrapper_config-0.3.2.tar.gz (14.2 kB) Copy SHA256 Checksum SHA256 Source Feb 7, 2016
pywrapper_config-0.3.2.zip (15.5 kB) Copy SHA256 Checksum SHA256 Source Feb 7, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting