Skip to content

Config File

Simple manipulation of ini, json, yaml, or toml files

Python Version Version Build Status

About Config File

The Config File project is designed to allow you to easily manipulate your configuration files with the same simple API whether they are in INI, JSON, YAML, or TOML.

Quick Example

from config_file import ConfigFile

# Load any supported configuration file
config = ConfigFile("~/myapp/config.ini")

# Get values with automatic type conversion
database_port = config.get('database.port', return_type=int)

# Set new values
config.set('database.host', 'localhost')

# Save changes
config.save()

Next Steps