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!

A WSGI Middleware that sends requests and responses to a datacenter somewhere in the US.

Project Description


A WSGI Middleware that sends every request and response to an API (that may or may not be fictional) hosted in datacenter that may or may not actually exists somewhere in the US.

At NSA we want to help you help your country by sending us all the information that might some day be useful in catching some criminal.

This middleware assumes that you haven't done anything illegal and you don't have anything to hide, and therefore it's totally reasonable for us to collect data for your own safety.



$ pip install patriotwsgi



from patriotwsgi import NSAMiddleware

from myapp.wsgi import application
application = NSAMiddleware(application)


This library doesn't actually exists.


You can:
* promote this library
* redistribute this library
* use this library
You can't:
* tell anyone that you're using this library. Especially your end users.


Q: Is this for real?
A: No. It's supposed to be a joke. We're not the actual NSA.

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(2.6 kB) Copy SHA256 Hash SHA256
Source None Aug 9, 2013

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting