A simpler way to read configuration files.
Project description
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
[network] port: 8080
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. :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DotConfig-0.1.1.tar.gz
(3.2 kB
view details)
File details
Details for the file DotConfig-0.1.1.tar.gz
.
File metadata
- Download URL: DotConfig-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abb90e9af0f4cbe27bb8bb0492a316eba06deca74414eb8cfcab48ddb4d37bb2 |
|
MD5 | 6f1baa1bd6b39aad049badc702c7dc77 |
|
BLAKE2b-256 | 561e7e65253de80f25ce4ad29c2c0378d07988d746ac00086f837217d294e32a |