🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
This commit is contained in:
parent
e5afd4a12f
commit
499a44ca88
|
@ -10,13 +10,13 @@ Usage:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import secret_loader
|
import secret_loader
|
||||||
|
|
||||||
secrets = secret_loader.SecretLoader(env_key_prefix='MYAPP')
|
secrets = secret_loader.SecretLoader(env_key_prefix='MYAPP')
|
||||||
|
|
||||||
db_username = secrets.load_or_fail('DATABASE_USERNAME')
|
db_username = secrets.load_or_fail('DATABASE_USERNAME')
|
||||||
db_password = secrets.load_or_fail('DATABASE_PASSWORD')
|
db_password = secrets.load_or_fail('DATABASE_PASSWORD')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Secret loading order:
|
Secret loading order:
|
||||||
|
|
||||||
0. Hardcoded values. **This is purely for debugging, prototyping, and for
|
0. Hardcoded values. **This is purely for debugging, prototyping, and for
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -19,13 +19,13 @@ Usage:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import secret_loader
|
import secret_loader
|
||||||
|
|
||||||
secrets = secret_loader.SecretLoader(env_key_prefix='MYAPP')
|
secrets = secret_loader.SecretLoader(env_key_prefix='MYAPP')
|
||||||
|
|
||||||
db_username = secrets.load_or_fail('DATABASE_USERNAME')
|
db_username = secrets.load_or_fail('DATABASE_USERNAME')
|
||||||
db_password = secrets.load_or_fail('DATABASE_PASSWORD')
|
db_password = secrets.load_or_fail('DATABASE_PASSWORD')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Secret loading order:
|
Secret loading order:
|
||||||
|
|
||||||
0. Hardcoded values. **This is purely for debugging, prototyping, and for
|
0. Hardcoded values. **This is purely for debugging, prototyping, and for
|
||||||
|
|
Loading…
Reference in New Issue
Block a user