Skip to main content

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


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)

Uploaded Source

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

Hashes for gcfg-0.2.tar.gz
Algorithm Hash digest
SHA256 c2e97969fd9d87fd9ece7821d17fbc51f3acf482debc3e1f49c0ef2b2c6ace94
MD5 358131aa2b57a1147387756217f686b2
BLAKE2b-256 0f2f4cf4c10c198c9a254f12462ead3c0a88b7d83934bbf8ec7aad77c81d4226

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page