Skip to main content

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

Project description

scitex-config

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

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.3.0.tar.gz (30.4 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.3.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_config-0.3.0.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_config-0.3.0.tar.gz
Algorithm Hash digest
SHA256 248974689131e46fa699378a0113e3eacb04f527cf8cb9b239b0aa86ac59dc82
MD5 e1486d732a5fcce20beabb94f60acb75
BLAKE2b-256 655353bfb26dcfa152d773da96152ae4faf065de00ad56a8cef2c4033e97f8a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_config-0.3.0.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-config

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: scitex_config-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_config-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53d6b255497379e5533ee626b74ad17c743569f925e397f3cdf1e45f9f27357d
MD5 6f510d8f6b10e961899c9b5cec771f74
BLAKE2b-256 94873c0e4155da585e235f8d16c80f8b82e8ad5de085851d00983dd6f18ae159

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_config-0.3.0-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-config

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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