Skip to main content

CfgStack

CfgStack is a configfile system reader. System? Yeah. In reading and parsing one file, CfgStack can be directed to go read other files and to incorporate their contents into the growing dataset.

CfgStack ("somefile")

Attempts to load the named file, first as a JSON file with a “.json” extension, and then as a YAML file with either a “.yaml” or “.yml” file extension. The loaded object must be a dictionary. The “data” member of the resulting object is an addict Dict of the loaded dataset. So far so simple.

_include_:
  - file1
  - file2
_default_:
  zero: 0
  one: 1
foo:
  this: that
  zero: null
var: value
bar:
  _default_:
    inner: inside_bar
  inside:
    oh: boy
    yep: really
baz:
  _include_:
    - file3

A few things going on here:

  • “_include_” keys are assumed to list additional data files which will be loaded and their contents merged with the dictionary at the same level. If multiple files are listed, they will be applied in order from the top down.

  • “_default_” keys provide default key:value pairs for all dictionary values at the current level

Note that all includes are applied first, then all defaults. Higher level values override lower level values, across both includes and defaults (includes first) and both for contents and data-type.

Metadata

Release files for cfgstack 0.1.post13

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

Source distribution (sdist)

Source distribution for cfgstack 0.1.post13
File Size Uploaded Provenance
cfgstack-0.1.post13.tar.gz 22.6 kB Without provenance Details

Release files / cfgstack-0.1.post13.tar.gz

Download URL cfgstack-0.1.post13.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
42d98d13bee53ccf13b184005af6436ec618c849b52624ee43b96ea44ce8e6b7
BLAKE2b-256 checksum
How to use checksums
bfca9c87bd1773aa59f41782999b5071bd49ca0290a23a8b3f92e4f05699f0c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cfgstack 0.1.post13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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