Skip to main content

Every WSGI app is better with a raptor.

Project description

https://github.com/ralphbean/raptorizemw/raw/master/raptorizemw/resources/raptor.png

Insallation

You could install it yourself with pip:

$ pip install raptorizemw

Or you could add raptorizemw to the list of required packages in the setup.py file of your project.

Usage in TurboGears 2

Simply edit myapp/config/middleware.py and add the following to make_app(...):

# Wrap your base TurboGears 2 application with custom middleware here
import raptorizemw
app = raptorizemw.make_middleware(app)

Restart your app, but watch out for raptors!

Usage in Pyramid

Edit myapp/__init__.py and replace the return config.make_wsgi_app() line with the following:

import raptorizemw
app = config.make_wsgi_app()
app = raptorizemw.make_middleware(app)
return app

Credits

This WSGI-fication of the raptorize jquery plugin was written by Ralph Bean. Real credit goes to the people over at ZURB who authored the original jquery plugin.

Get the source

The code and bug tracker live over at http://github.com/ralphbean/raptorizemw. Please fork and improve! We need configurable options. :)

Project details


Download files

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

Source Distribution

raptorizemw-0.1.1dev.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file raptorizemw-0.1.1dev.tar.gz.

File metadata

File hashes

Hashes for raptorizemw-0.1.1dev.tar.gz
Algorithm Hash digest
SHA256 b7a3b8f2f2b731013b2fdab83d7e3ab359e062e8a7dfa0ebeb01981dd42e8538
MD5 f35cdf101ed10fa7145f1f35fee9b37d
BLAKE2b-256 18688b4ae815aae25de298854a01e57c5ffee059b857b16dee0cd9ee240bcd7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page