pyzopfli
======
"Protected" data types to hide secrets in Django config files.
Running a Django server in debug mode risks exposing secrets like API
keys and passwords to the world. While Django will "filter out"
certain values, it still makes available the contents of local
variables which might also contain hidden keys.
Protected works by breaking the object's __repr__ method to prevent casual display.
from protected import ProtectedString
>>> print ProtectedString('abc')
abc
>>> print repr(ProtectedString('abc')
<Protected String 'abc'>
======
"Protected" data types to hide secrets in Django config files.
Running a Django server in debug mode risks exposing secrets like API
keys and passwords to the world. While Django will "filter out"
certain values, it still makes available the contents of local
variables which might also contain hidden keys.
Protected works by breaking the object's __repr__ method to prevent casual display.
from protected import ProtectedString
>>> print ProtectedString('abc')
abc
>>> print repr(ProtectedString('abc')
<Protected String 'abc'>
Metadata
Release files for protected 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| protected-0.0.1.tar.gz | 1.5 kB | Details |
Release files / protected-0.0.1.tar.gz
| Download URL | protected-0.0.1.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79fa0e26d770bf1e254dd5e2ab5b291c601d1cfa13eba6c7ccafd315933e5dae
|
|
BLAKE2b-256 checksum How to use checksums |
1f43c51fa0f8459ddd20f6c0db4b845b8922f0de2ac2c264b28e9e08107be912
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |