skip to navigation
skip to content

Not Logged In

protected 0.0.1

"Proteted" data types suitable for hiding secrets in Django config files.


"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')

>>> print repr(ProtectedString('abc')
<Protected String 'abc'>
File Type Py Version Uploaded on Size
protected-0.0.1.tar.gz (md5) Source 2013-12-13 1KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 17 downloads in the last week
  • 136 downloads in the last month