Skip to main content

Configuration helpers (YAML + dotenv layered priority) — standalone module from the SciTeX ecosystem

Project description

scitex-config

Configuration helpers (YAML + dotenv with layered priority) extracted from the SciTeX ecosystem as a standalone package.

Install

pip install scitex-config

API

import scitex_config as cfg

# YAML-based (recommended)
config = cfg.get_config()
print(config.MY_KEY)

# Path resolution
paths = cfg.get_paths()
paths.function_cache  # ~/.scitex/cache/function/...

# Layered (env > .env > yaml > defaults)
pc = cfg.PriorityConfig()
pc["DATABASE_URL"]

Status

Standalone fork of scitex.config. Only dep is PyYAML. The umbrella package's scitex.config import path is preserved via a sys.modules-alias bridge.

License

AGPL-3.0-only (see LICENSE).

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

scitex_config-0.1.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_config-0.1.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file scitex_config-0.1.0.tar.gz.

File metadata

  • Download URL: scitex_config-0.1.0.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_config-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b90e835e6c86cdbdf46e6a310a1cbae5ad2a0a10e55017b2c81ef76941fb5db
MD5 da092755048d47d32e3514108d191601
BLAKE2b-256 2c5ad3cc5d6db97207f14e7d7291d9ba95a3bd25b63d9f7051a413f5f4ee46e3

See more details on using hashes here.

File details

Details for the file scitex_config-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_config-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_config-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36daf59c1f77c5ab8a829cea820859cf18282c494766896fe44b3b28ba3249ff
MD5 11c99c5a032f2b0515d9633fe6e584ad
BLAKE2b-256 b013100715d7b558572da929e2469c5c17f5bc15d27ba20043e84e2f94d83b41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page