Skip to main content
Latest PyPI version

Python Decouple AWS helps you to organize and access sensitive information on AWS Secrets Manager.

It also makes it easy for you to:

  1. Not repeat the boto3 boilerplate code;

  2. Define default values;

  3. Use os.environ as fall back;

Supports Python 3.4+

Why

  • Single place to save all secrets (AWS Secrets Manager)

  • Keep sensitive information away from code and environments

  • Simpler API to access AWS Secrets Manager (rather than boto3)

Installation

pip install python-decouple-aws

Usage example 1

#  settings.py
from decouple_aws import get_config

# The package provides a wrapper function that will
# fallback to environment variables and fail gracefully
# if AWS Secrets Manager is not accessible for whatever
# reason.
config = get_config('your-project/secret/name', 'ap-southeast-2')

# Use decouple config like normal
MY_EMAIL_USER = config('MY_EMAIL_USER', 'default-user')
MY_EMAIL_PASS = config('MY_EMAIL_PASS')

Usage example 2

# settings.py
from decouple import Config
from decouple_aws import RepositoryAwsSecretManager

# if you would like it to fail if secrets
# manager is inaccessible, you can build it manually.
# initialise the config with the AWS repository
# Pass the repo your secret name and the region
repo = RepositoryAwsSecretManager('your-project/secret/name', 'ap-southeast-2')
config = Config(repo)

# Use decouple config like normal
MY_SUPER_SECRET_SETTING = config('MY_SUPER_SECRET_SETTING')

Metadata

Release files for python-decouple-aws 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-decouple-aws 0.3.2
File Size Uploaded Provenance
python-decouple-aws-0.3.2.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-decouple-aws 0.3.2
File Interpreter ABI Platform
python_decouple_aws-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / python-decouple-aws-0.3.2.tar.gz

Download URL python-decouple-aws-0.3.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ae374302259b3f9825287e0962a9c4ab4578ec572bc126595250401b9fc6606f
BLAKE2b-256 checksum
How to use checksums
2500d5cc5aaa10c40bfcf4fd8c90f3e96016b078ce8bd4ba8a0d5e7a8746810d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.5 CPython/3.6.6 Darwin/18.0.0

Release files / python_decouple_aws-0.3.2-py3-none-any.whl

Download URL python_decouple_aws-0.3.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58ee5b5b037aa13db0905d9f524ffc8c403fb0721f2c707b2c9d048a5b1d1c61
BLAKE2b-256 checksum
How to use checksums
06c1cae32018e2ec727a86556216b1bda602c5a43376a71e21b1e4bfd44bee22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.5 CPython/3.6.6 Darwin/18.0.0

Security for python-decouple-aws 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page