Skip to main content

Module to read scfg formatted configuration files.

Project description

A Python module to parse scfg formatted configuration files.

It’s a simple port of the Go module go-scfg.

Note: Not to be confused with pyscfg which appears to parse configurations into and out of YAML files.

Usage

Very simple:

import scfg

conf = scfg.Config("~/your_config.conf")
conf.load()
train = conf.get("train")
train_models = train.get_all("model")

Contributing

We accept patches submitted via hg email which is the patchbomb extension included with Mercurial.

Please see our contributing document for more information.

The mailing list where you submit your patches is ~petersanchez/public-inbox@lists.code.netlandish.com. You can also view the archives on the web here:

https://lists.code.netlandish.com/~petersanchez/public-inbox

To quickly setup your clone of py-scfg to submit to the mailing list just edit your .hg/hgrc file and add the following:

[email]
to = ~petersanchez/public-inbox@lists.code.netlandish.com

[patchbomb]
flagtemplate = "py-scfg"

[diff]
git = 1

We have more information on the topic here:

Commercial Support

This software, and lots of other software like it, has been built in support of many of Netlandish’s own projects, and the projects of our clients. We would love to help you on your next project so get in touch by dropping us a note at hello@netlandish.com.

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

py-scfg-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file py-scfg-0.1.0.tar.gz.

File metadata

  • Download URL: py-scfg-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.5

File hashes

Hashes for py-scfg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e17d0a47d520c181d4d441c0e8d384d4d4eec2c92b53c60540efa8128cbd6bf1
MD5 7476d5f727a25cc82fe95f215666dd28
BLAKE2b-256 bd7700c1c64fed8aca3bf41d999de1f5b3d843de54fbb8a36cd3d124b5833f1f

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