Skip to main content

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")
trail_models[0].get("lines-served")

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.

Metadata

Release files for py-scfg 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-scfg 0.1.2
File Size Uploaded
py-scfg-0.1.2.tar.gz 3.2 kB Details

Release files / py-scfg-0.1.2.tar.gz

Download URL py-scfg-0.1.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bd81033c9dc9cc1face07f64ab7da30bf932bc7c300e7443c7ac84f3318bd8fb
BLAKE2b-256 checksum
How to use checksums
e815d73fbdbe7805b24244ab9183a890738b2940f3735f40c9b46eff942ef51f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page