Compare commits
2 Commits
e5afd4a12f
...
c385e17d45
Author | SHA1 | Date | |
---|---|---|---|
c385e17d45 | |||
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
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.11'
|
__version__ = '0.1.12'
|
||||||
|
|
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