Registry / devops / scitex-config

scitex-config

JSON →
library0.3.6pypypi✓ verified 80d ago

Configuration and path management library with a priority cascade: direct → YAML → environment → default. Includes a per-package state-dir resolver. Part of the SciTeX ecosystem. Current version: 0.3.6. Release cadence: irregular.

pip install scitex-config
INSTALL
IMPORT
SIG · SCITEX-CONFIG
S
scitex-config
devopspythonv0.3.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ScitexConfig
from scitex_config import ScitexConfig
from scitex_config import ConfigManager
get_config
from scitex_config import get_config
ScitexPaths
from scitex_config import ScitexPaths

Initialize ConfigManager and retrieve values with priority cascade.

from scitex_config import ConfigManager import os cm = ConfigManager( package_name='myapp', defaults={'debug': False}, env_var_prefix='MYAPP', config_path=os.environ.get('CONFIG_PATH', 'config.yaml') ) # Priority: direct > yaml > env > default print(cm.get('debug')) # Set value directly (highest priority) cm.set('mode', 'production') print(cm.get('mode'))
Debug
Known issues
gotchaConfigManager uses an underscore in the package name. The import path is `scitex_config`, not `scitex.config`.
fix
Use `from scitex_config import ConfigManager`.
affects: all
deprecatedThe `state_dir()` function in earlier versions was renamed to `get_state_dir()` in 0.3.0.
fix
Use `get_state_dir()` instead of `state_dir()`.
affects: <0.3.0
gotchaEnvironment variable names are automatically converted to uppercase even if you provide a different case in `env_var_prefix`.
fix
Always define environment variables in uppercase.
affects: >=0.3.0
Upgrade
Version history
0.3.6latest on PyPI · released May 29, 2026
Audit
Dependencies
PyYAMLrequiredRequired for YAML configuration file parsing
Agent activity
12 hits · last 30 days
node
10
Resources
scitex-config — pip install scitex-config · libregistry