
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
confighub
Advanced tools
Lightweight configuration management with layered sources for Python microservices. Load from JSON, YAML, TOML, INI, .env files with deep merging, interpolation, and change watchers.
pip install confighub
from confighub import ConfigManager, load_env, merge_deep, interpolate
# Layer multiple configuration sources
config = ConfigManager({'app': {'name': 'myservice', 'debug': False}})
config.load('config/defaults.json')
config.load('config/local.yaml')
config.from_env({'APP_PORT': 'app.port', 'DB_URL': 'database.url'})
# Access nested values with dot notation
port = config.get('app.port', 8080)
db_url = config.get('database.url')
# Watch for changes
config.watch(lambda data: print('Config updated!'))
config.set('app.debug', True)
# Load .env files
env_vars = load_env('.env', override=False)
# Deep merge configs
merged = merge_deep(base_config, override_config)
# Variable interpolation
template = {'url': 'https://${HOST:-localhost}:${PORT}'}
resolved = interpolate(template, {'HOST': 'prod.example.com', 'PORT': '443'})
config.get('database.pool.size')${VAR} and ${VAR:-default} with env fallbackConfigManager(defaults=None) — create manager with optional defaults.load(source, priority=0) — load dict, file path, or env mapping.get(key, default=None) — get value by dot-notation key.set(key, value) — set value.has(key) — check existence.delete(key) — remove key.all() — get full config dict.keys(prefix=None) — list keys.from_env(mapping) — load from environment variables.watch(callback) / .unwatch(callback)load_json(path) / save_json(path, data)load_env(path='.env', override=False) / save_env(path, data)load_ini(path) / load_yaml(path) / load_toml(path)interpolate(value, context) — variable interpolationmerge_deep(base, override) — recursive dict mergefreeze(obj) — make hashable (for caching)diff(old, new) — compute config changesMIT
FAQs
Lightweight configuration management with layered sources for Python microservices
The pypi package confighub receives a total of 152 weekly downloads. As such, confighub popularity was classified as not popular.
We found that confighub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.