Metadata-Version: 2.1
Name: docker-secrets-dotenv
Version: 0.1.1
Summary: Load docker secrets into ENV
Home-page: https://gitlab.richardsoper.me/richardsoper/docker-secrets
License: MIT
Author: Richard Soper
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Project-URL: Repository, https://gitlab.richardsoper.me/richardsoper/docker-secrets
Description-Content-Type: text/markdown

# docker-secrets-dotenv

docker-secrets-dotenv takes all your docker secrets files, and sets them up in the environment.

## Getting Started

`pip install docker-secrets-dotenv`

To use docker-secrets-dotenv in your project run `load_secrets` as the start of your application:

```python
from docker_secrets import load_secrets

load_secrets() 
# This will load all secret files found in /run/secrets into the running environment
```

`load_secrets` will take the name of each secret file to set as the variable key and read the file contents as the value. It will overwrite existing environment variables.

