Skip to content
This repository has been archived by the owner on Sep 24, 2023. It is now read-only.
/ pyconfigparser Public archive

Python Configuration Parser (compatible python 2/3)

License

Notifications You must be signed in to change notification settings

Colin-b/pyconfigparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyconfigparser

Python Configuration Parser (compatible python 2/3)

Sample usage:

To read the following configuration file named configuration.ini:

[section]
mandatory_property=mandatory value

You can use the following code:

import cfgparse

config = cfgparse.load_config('configuration.ini')
mandatory_value = cfgparse.get_item(config, 'section', 'mandatory_property')
optional_value = cfgparse.get_item(config, 'section', 'optional_property', 'default_value')

About

Python Configuration Parser (compatible python 2/3)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages