Registry / devops / opset
library4.3.0pypypiunverified

Opset simplifies configuration management for Python applications across development, testing, and production. Current version 4.3.0, supports Python >=3.10,<4.0. Active development.

pip install opset
INSTALL
IMPORT
SIG · OPSET
O
opset
devopspythonv4.3.0
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.

Conf
import opset
from opset import Conf

Define a typed configuration schema with environment variable overrides.

from opset import Conf # Define configuration schema with defaults and env variable overrides conf = Conf( db_host=Conf.var(type=str, default='localhost', env='DB_HOST'), db_port=Conf.var(type=int, default=5432, env='DB_PORT'), debug=Conf.var(type=bool, default=False, env='DEBUG') ) # Access config values print(f"DB Host: {conf.db_host}, Port: {conf.db_port}, Debug: {conf.debug}")
Debug
Known issues
breakingIn opset 4.x, Conf.var signature changed: 'default' is now required for all types, and 'required' parameter replaced 'mandatory'.
fix
Update calls to Conf.var: add default=... and use required=True instead of mandatory=True.
affects: <4.0.0
deprecatedThe from_env=True parameter is deprecated in favor of passing env directly to Conf.var or using Env class.
fix
Use env='VAR_NAME' instead of from_env=True.
affects: >=4.0.0,<4.3.0
gotchaConf.var with type=bool does not accept 'true' or 'false' strings; only '1', '0', 'true', 'false' (case‑insensitive) work. 'yes'/'no' cause a validation error.
fix
Use 'true' or 'false' (lowercase) for bool environment variables.
affects: all
gotchaNested configuration (Conf with child Conf) changed syntax in 4.x; sub‑configs must be defined via Conf.child() instead of direct instantiation.
fix
Use conf = Conf(child=Conf.child(...)) instead of conf = Conf(child=Conf(...)).
affects: >=4.0.0
Upgrade
Version history
4.3.0latest on PyPI · released Feb 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

opset — pip install opset · libregistry