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

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?

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

Closing File Opened By Configparser

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

How Can I Remove The White Characters From Configuration File?

I would like to modify the samba configuration file using python. This is my code from ConfigParser… Read more How Can I Remove The White Characters From Configuration File?

ConfigParser Getting Value From INI File With Section And Subsection As Shown Below

I have a following type of INI file [section1][subsection1] port=989 [section1][subsection2] someth… Read more ConfigParser Getting Value From INI File With Section And Subsection As Shown Below

ConfigParser And Section With Values Without Keys

I'm just wondering. Is there any chance to create section in *.ini file to store only values wi… Read more ConfigParser And Section With Values Without Keys