convert *.ini to python Model for easy access
Project description
UsageExample files(_config.ini) content ` [db] dbtype = mysql `
files(_config.default.ini) content ` [db] dbtype = sqlite user = guest `
sample code ` import gcfg gcfg.DEFAULTFILES = ['_config.ini', '_config.default.ini'] print gcfg.db.dbtype # expect mysql print gcfg.db.user # expect guest `
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
gcfg-0.2.tar.gz
(2.0 kB
view details)
File details
Details for the file gcfg-0.2.tar.gz
.
File metadata
- Download URL: gcfg-0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e97969fd9d87fd9ece7821d17fbc51f3acf482debc3e1f49c0ef2b2c6ace94 |
|
MD5 | 358131aa2b57a1147387756217f686b2 |
|
BLAKE2b-256 | 0f2f4cf4c10c198c9a254f12462ead3c0a88b7d83934bbf8ec7aad77c81d4226 |