Skip to main content

configpy is a JSON configuration file reader with support for variable look-ahead and look-behind, expressions, and comments.

Example

config_json = """
/* Some example configuration items */
{
    "a": 10,
    "b": 2,
    "c": "{{ ${a} / ${b} }}",
    "d": "{{ ${c} * ${a} }}",
    "e": "{{ ${d} + 50 }}",
    "f": "{{ ${e} - 25 }}",
    "g": "'some text = {{ ${a} / ${b} }}'"
}
"""

config = Config(config_json)
10 == config.a
2 == config.b
5 == config.c
50 == config.d
100 == config.e
75 == config.f
"some text = 5" == config.g

Metadata

Release files for configpy 0.5

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

Source distribution (sdist)

Source distribution for configpy 0.5
File Size Uploaded Provenance Actions
configpy-0.5.tar.gz 6.1 kB Without provenance Details for configpy-0.5.tar.gz

Release files / configpy-0.5.tar.gz

Download URL configpy-0.5.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
31eb6a19e11453cf367a159b178eb3fabc04be1320eace2ae146b5720eb3404e
BLAKE2b-256 checksum
How to use checksums
ffbe2da8413d7b9cabf59f92e6dec8286a9a3f7d08f3def89f42b4766fddd00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for configpy 0.5

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.

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file No provenance

0.1.0

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