Skip to main content

This is a python project that parses the configuration file for the "key = value" type.

Project description

This is a python project that parses the configuration file for the "key = value" type.
Usage :
# analysis.conf
# remark ...
key1 = value1
key2 = value2

------------
Create a ConfigAnalysis object:
from pyConfigAnalysis import ConfigAnalysis
config = ConfigAnalysis()
config.read("analysis.conf")
Get all of the key:
config.keys()
->["key1","key2"]
Get the value from a key:
config.get("key1")
->"value1"
Update a configuration
config.update("key2","newvalue2")
#check
config.get("key2")
->"newvalue2"
#save to configuration file
config.save()
Add a configuration
config.add("key3","value3")
#check
config.get("key3")
->"value3"
#save to configuration file
config.save()

Project details


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
pyConfigAnalysis-1.0.4-py3-none-any.whl (4.5 kB) Copy SHA256 hash SHA256 Wheel py3
pyConfigAnalysis-1.0.4.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None

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