Compare commits
2 Commits
e5afd4a12f
...
c385e17d45
Author | SHA1 | Date | |
---|---|---|---|
c385e17d45 | |||
499a44ca88 |
|
@ -10,13 +10,13 @@ Usage:
|
|||
|
||||
```python
|
||||
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_password = secrets.load_or_fail('DATABASE_PASSWORD')
|
||||
```
|
||||
|
||||
|
||||
Secret loading order:
|
||||
|
||||
0. Hardcoded values. **This is purely for debugging, prototyping, and for
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.1.11'
|
||||
__version__ = '0.1.12'
|
||||
|
|
4
setup.py
4
setup.py
|
@ -19,13 +19,13 @@ Usage:
|
|||
|
||||
```python
|
||||
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_password = secrets.load_or_fail('DATABASE_PASSWORD')
|
||||
```
|
||||
|
||||
|
||||
Secret loading order:
|
||||
|
||||
0. Hardcoded values. **This is purely for debugging, prototyping, and for
|
||||
|
|
Loading…
Reference in New Issue
Block a user