Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Project Description

"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'>
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
protected-0.0.1.tar.gz (1.5 kB) Copy SHA256 Checksum SHA256 Source Dec 13, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting