Python Language configparser

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

This module provides the ConfigParser class which implements a basic configuration language in INI files. You can use this to write Python programs which can be customized by end users easily.

Syntax

  • Each new line contains a new key value pair separated by the = sign
  • Keys can be separated in sections
  • In the INI file, each section title is written between brackets: []

Remarks

All return values from ConfigParser.ConfigParser().get are strings. It can be converted to more common types thanks to eval



Got any Python Language Question?