Skip to content Skip to sidebar Skip to footer
Showing posts with the label Configparser

Config Parser: Choosing Name And Value Delimiter

Let's say I have one test.ini file with the following lines: [A] name1 [0,1]=0 name2 a:b:c / A:… Read more Config Parser: Choosing Name And Value Delimiter

Closing File Opened By Configparser

I have the following: config = ConfigParser() config.read('connections.cfg') sections = con… Read more Closing File Opened By Configparser

Configparser With Unicode Items

my troubles with ConfigParser continue. It seems it doesn't support Unicode very well. The conf… Read more Configparser With Unicode Items

Reading A Fortigate Configuration File With Python

Appologies for the really long drawn out question. I am trying to read in a config file and get a l… Read more Reading A Fortigate Configuration File With Python

Python 2.4.3: Configparser.nosectionerror: No Section: 'formatters'

Trying to use a logging configuration file to implement TimedRotatinigFileHandler. Just won't t… Read more Python 2.4.3: Configparser.nosectionerror: No Section: 'formatters'

How To Write Ini-files Without Sections?

I need to create a file in the following format: option1 = 99 option2 = 34 do_it = True ... When I… Read more How To Write Ini-files Without Sections?

Iterate Over Sections In A Config File

I recently got introduced to the library configparser. I would like to be able to check if each sec… Read more Iterate Over Sections In A Config File