{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"}],"enrichment":{"capability":"Reads configuration parameters from environment variables, .env files, or ini files, with type casting and default values, keeping settings separate from code.","skillfed_tags":["configuration-management","environment-variables","settings-framework"],"use_cases":["Store database credentials, API keys, and service URLs in .env files without committing them to version control.","Toggle DEBUG mode and feature flags between development, staging, and production without redeploying code.","Configure email, cache, and logging backends with environment-specific values in Django or Flask settings.","Cast port numbers, timeouts, and batch sizes from environment strings to integers in application initialization.","Define per-deployment hostnames and SSL settings that change between instances without code changes."],"what_it_does":"Python Decouple is a configuration management library that reads settings from environment variables, .env files, or ini files and makes them available to your Python code with optional type casting and default values. It solves the problem that environment variables are always strings\u2014if you read DEBUG=False from an environment variable, a simple truthiness check will treat it as True because the string \"False\" is non-empty. Decouple lets you cast values to the correct type (bool, int, list, etc.) and define sensible defaults, so your code can safely assume the right data types.\n\nOriginally designed for Django, it has become a framework-agnostic tool used across web frameworks and general Python applications. It respects Unix convention by checking environment variables first, then falling back to config files, then to defaults you provide. The library is lazy\u2014it only opens and parses config files when first needed\u2014and supports UTF-8 encoding by default with the option to specify another.","worth_installing":"Yes. This is a mature, stable library with no dependencies, low install friction, and no known vulnerabilities. It solves a real problem (type-safe configuration from environment) that most Python applications face. The dormant maintenance status is not a concern for a small, focused tool that does one thing well and has been Production/Stable since 2014. Install it if you need to manage settings separately from code."},"id":"python-decouple","links":{"html":"https://skillfed.io/packages/python-decouple","md":"https://skillfed.io/packages/python-decouple.md","pypi":"https://pypi.org/project/python-decouple/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-03-01","license_spdx":null,"license_treatment":"permissive","name":"python-decouple","python_support":"unspecified","summary":"Strict separation of settings from code."},"popularity":{"monthly_downloads":8769852,"position":1596,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.8"}
