GitHub - frawgie/dotconfig: Simple read-only access for Python config files.

1 min read Original article ↗

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

DotConfig

A simpler way to read configuration files.

dotconfig provides a very simple way to read options from a config file. It is currently read-only.

How to use

Example:

data.config

example.py

import dotconfig
config = dotconfig.Config("data.config")
config.network.port # returns the port number as string

Contribute

Feel free to fork and add anything you find is missing. :)

About

Simple read-only access for Python config files.

Resources

Readme

License

MIT license

Activity

Stars

5 stars

Watchers

2 watching

Forks

0 forks