Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tswicegood/wsgi-pratchett
https://github.com/tswicegood/wsgi-pratchett
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tswicegood/wsgi-pratchett
- Owner: tswicegood
- License: apache-2.0
- Created: 2015-03-16T23:32:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-27T16:57:07.000Z (over 9 years ago)
- Last Synced: 2024-04-14T14:50:19.940Z (7 months ago)
- Language: Python
- Size: 160 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
============================
GNU Terry Pratchett for WSGI
============================Simple WSGI middleware for adding Terry Pratchett's header to your requests per
the conversation that's happening `on reddit`_.. _on reddit: https://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett
-----
Usage
-----WSGI middleware is pretty simple. Wrap your WSGI application in an instance of
``GNUTerryPratchett`` and you're set... code-block:: python
from pratchett import GNUTerryPratchett
# ... your code here, create your WSGI application
app = GNUTerryPratchett(your_app)When using PasteDeploy configuration files you can also add the middleware there.
.. code-block:: ini
# Your main application
[app:main]
filter-with = pratchett[filter:pratchett]
use = egg:wsgi-pratchett