{"library":"sprig-config","title":"sprig-config","type":"library","description":"A Python library for loading and deep-merging configuration from multiple formats (YAML, JSON, TOML, Python dicts) with Spring-like profiles and variable interpolation. Supports include directives and environment variable substitution. Latest version 1.4.8, requires Python ≥3.13.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install sprig-config"],"cli":null},"imports":["from sprig import Config","from sprig import load_config"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://derikgw.github.io/sprig-config/","github":"https://github.com/derikgw/sprig-config","docs":"https://derikgw.github.io/sprig-config/","changelog":"https://github.com/derikgw/sprig-config/blob/main/CHANGELOG.md","pypi":"https://pypi.org/project/sprig-config/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import os\nfrom sprig import Config\n\n# Optional: set a profile via environment variable\nos.environ.setdefault('SPRIG_PROFILE', 'dev')\n\ncfg = Config()\n# Load config from file with profile and variable interpolation\ncfg.load('config.yml')\n\n# Access values using dot notation or dict-like access\ndatabase_host = cfg.get('database.host', 'localhost')\nprint(database_host)","lang":"python","description":"Basic usage: create Config instance, load from file, access nested keys.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}