Skip to main content

qcload

Priority-based config loader for qdata ecosystem.

Quick start

from qcload import config, load_config, load_from_path

# Auto-search (global singleton, lazy load)
db_url = config["DATABASE_URL"]

# Functional call (new instance each time)
cfg = load_config()

# Load from specific file path
cfg = load_from_path("/path/to/my/config.yaml")

# Reload the global singleton
config = reload_config()

Search priority

qcload searches for config files in this order (first found wins):

  1. ~/config.yaml (user home)
  2. ~/.env
  3. ./config.yaml (current directory)
  4. ./.env
  5. ../config.yaml (parent)
  6. ../.env
  7. ../../config.yaml (grandparent)
  8. ../../.env

Config object

cfg = load_config()

# Dict access
cfg["DATABASE_URL"]

# Attribute access (nested yaml)
cfg.database.host

# Type helpers
cfg.get_int("PORT", 8080)
cfg.get_bool("DEBUG", False)
cfg.get_float("RATE", 0.0)
cfg.get_list("HOSTS", [])

# Metadata
cfg.source       # Path to the loaded file
cfg.file_type    # "yaml" or "env"
cfg.is_empty     # True if no keys loaded

License

MIT

Metadata

Release files for qcload 0.1.0

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

Source distribution (sdist)

Source distribution for qcload 0.1.0
File Size Uploaded Provenance Actions
qcload-0.1.0.tar.gz 8.9 kB Without provenance Details for qcload-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qcload 0.1.0
File Interpreter ABI Platform Actions
qcload-0.1.0-py3-none-any.whl Python 3 none any Details for qcload-0.1.0-py3-none-any.whl

Total release size: 16.9 kB

Release files / qcload-0.1.0.tar.gz

Download URL qcload-0.1.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
56a248f465821d4740e5b995cef9ba7c0f71f75a725b3a57969e599214c2d7a3
BLAKE2b-256 checksum
How to use checksums
b9312ad77d0319031346a26427e93f7a9f246077596dddeb937970ec4fa0a42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / qcload-0.1.0-py3-none-any.whl

Download URL qcload-0.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
005cc0f0513903e91e2d3382865f8611afaee7dadcfefd97b4426ae2e74d7acd
BLAKE2b-256 checksum
How to use checksums
5333873751e9964fd7a270fa275fb03b9d12797ef5842c39757108c265281b87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for qcload 0.1.0

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.1.0 This release

2 release files No provenance

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