{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/17"}],"enrichment":{"capability":"Cabina provides class-based configuration management with automatic environment variable parsing, type safety, computed values, and hierarchical sections for building environment-driven configs.","skillfed_tags":["configuration-management","environment-variables","type-safe"],"use_cases":["Define a web service config with typed host, port, and timeout settings parsed from environment variables with sensible defaults.","Build a hierarchical config for a microservice with separate sections for database, cache, and API settings, each with their own env var prefix.","Create computed config values like a full API URL derived from separate host and port variables, updated automatically if either changes.","Implement environment-specific configs (dev, staging, prod) by subclassing a base Config and overriding section values.","Parse complex JSON or custom-format config from environment variables using custom parser functions.","Defer config parsing until first access using lazy_env to handle variables that may not exist at import time."],"what_it_does":"Cabina is a Python library for building typed, hierarchical configurations driven by environment variables. It lets you define config as nested classes with type annotations, automatically parsing environment variables into the correct types (string, int, bool, etc.) with sensible defaults. You can also define computed properties that derive values from other config fields, and use custom parsers for special formats like JSON or duration strings.\n\nThe library is designed to reduce boilerplate in configuration setup\u2014instead of manually reading os.environ and casting values, you declare your config structure once as a class hierarchy and cabina handles parsing, validation, and access. It supports flat configs (inheriting both Config and Section), prefixed environment variables to avoid collisions, lazy evaluation of variables, and inheritance patterns for specializing configs across environments.","worth_installing":"Yes, if you need typed environment-driven configuration with minimal dependencies. The low install friction, permissive license, and no known vulnerabilities make it safe to adopt. However, the dormant maintenance status (584 days since last release) means you should verify it handles your specific use cases and accept that bug fixes or feature requests may move slowly. Best suited for straightforward config needs rather than highly specialized or rapidly evolving requirements."},"id":"cabina","links":{"html":"https://skillfed.io/packages/cabina","md":"https://skillfed.io/packages/cabina.md","pypi":"https://pypi.org/project/cabina/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-07","license_spdx":null,"license_treatment":"permissive","name":"cabina","python_support":"supports_current","summary":"Configuration with typed env vars"},"popularity":{"monthly_downloads":96060,"position":13234,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.2"}
