decorative-secrets is a Python library designed to streamline the handling of sensitive authentication credentials in software development. By implementing decorators, it enables developers to map function parameters that require sensitive data to alternate parameters, allowing credentials to be dynamically retrieved from supported secret sources or environment variables. This approach aims to balance secure credential management with practices such as test-driven development.
The library currently supports retrieving secrets from Databricks Secrets, 1Password, and environment variables. For Databricks, secrets can be accessed when running in a Databricks Runtime environment by specifying the relevant scope and key. With 1Password, the library leverages the 1Password CLI and can operate either with the desktop client—prompting the user for authentication during execution—or with a service account by setting the appropriate environment variable (OP_SERVICE_ACCOUNT_TOKEN). This flexibility allows for use in both local development and CI/CD or hosted application contexts. Environment variables are also supported as a source for credentials, enabling straightforward integration with existing deployment workflows.
The usage model involves decorating functions that require sensitive credentials, such as OAuth 2 client IDs and secrets. When such a function is called, the library attempts to use explicitly provided credentials first. Errors encountered during each retrieval attempt are accumulated and only raised if all mechanisms fail, providing a robust fallback system for credential resolution.
decorative-secrets is distributed as a Python package installable via pip, with optional extras for Databricks and 1Password support. The tool is positioned as a solution for developers seeking to manage authentication secrets securely and flexibly across various environments.
decorative-secrets sits in PulseGate's Infrastructure & Backend category. It simplifies secure handling of sensitive credentials in Python applications by abstracting secrets management across multiple providers. decorative-secrets is an open-source project aimed at python developers. The project is open source (MIT). decorative-secrets is available on the web and the command line, and it can be self-hosted.
decorative-secrets first shipped in 2025. The project is developed in the open on GitHub with 7 commits in the last 90 days. Among its 5 catalogued features are secrets management, decorator pattern, and databricks integration. It exposes integrations via a public API.
Latest indexed changes and source events
Other apps tracked under the same category.