About 1,150,000 results
Open links in new tab
  1. How to read a config file with Python's configparser?

    Apr 29, 2019 · 13 I'm working on reading an external config file in Python (3.7) using the module configparser. Here is my sample configuration file config.ini

  2. How to read a config file using python - Stack Overflow

    import ConfigParser configParser = ConfigParser.RawConfigParser() configFilePath = r'c:\abc.txt' configParser.read(configFilePath) As human.js noted in his comment, in Python 3, …

  3. Why is there {Raw,Safe}ConfigParser in Python 3?

    Jul 29, 2016 · In short, use configparser.SafeConfigParser. To quote the docs, SafeConfigParser "implements a more-sane variant of the magical interpolation feature. This implementation is …

  4. Python 3 ImportError: No module named 'ConfigParser'

    Dec 30, 2012 · AttributeError: module 'configparser' has no attribute 'configparser' After a bit more research I realised that for python 3 ConfigParser is changed to configparser but note that it …

  5. python - Preserve case in ConfigParser? - Stack Overflow

    I have tried to use Python's ConfigParser module to save settings. For my app it's important that I preserve the case of each name in my sections. The docs mention that passing str() to …

  6. How to read and write INI file with Python3? - Stack Overflow

    This module provides the ConfigParser class which implements a basic configuration language which provides a structure similar to what’s found in Microsoft Windows INI files.

  7. Convert ConfigParser.items('') to dictionary - Stack Overflow

    Nov 21, 2009 · How can I convert the result of a ConfigParser.items('section') to a dictionary to format a string like here: import ConfigParser config = ConfigParser.ConfigParser() …

  8. Change value in ini file using ConfigParser Python

    Jan 15, 2015 · 12 Python's official docs on configparser illustrate how to read, modify and write a config-file.

  9. configparser - How to read properties file in python - Stack Overflow

    Jan 14, 2015 · I have a property file called Configuration.properties containing: path=/usr/bin db=mysql data_path=/temp I need to read this file and use the variable such as path, db, and …

  10. python - Lists in ConfigParser - Stack Overflow

    Dec 3, 2008 · python configparser edited Nov 27, 2017 at 22:18 Donald Duck is with Ukraine 9,030 23 82 107