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.1.tar.gz (32.6 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.1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_config-0.3.1.tar.gz
  • Upload date:
  • Size: 32.6 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.1.tar.gz
Algorithm Hash digest
SHA256 51bad67c6393d217a6f839e96d04620767d23eec58dc7dda46c202428d8ecac3
MD5 4eda955f5593aafc5c127e339fb8e9bc
BLAKE2b-256 49ca46383b866f4dd28cf840c69fa61a27d0eac10eba431271b2318ee94c26e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_config-0.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: scitex_config-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 33.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef3ba46896a3f148d83b136923d97d99adcc21f42e7d593d9777c033e47e164e
MD5 ea1a9670c0b3b5d9d8e8529fa4c2c9fa
BLAKE2b-256 b7d22abd25e97cb39589dfd93f746e7071408f8bd3a7331598ff14ac9342b0c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_config-0.3.1-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