Skip to main content

The Swiss Army knife of Python web development

Project description

werkzeug

Werkzeug is the Swiss Army(r) knife of Python web development.

It provides useful classes and functions for any WSGI application take make life much easier. All of the provided classes are independed from each other so you can mix it with any other library.

Builtin blades^Wfeatures

Request / Response objects

These objects wrap the WSGI environ and start_response objects. They handle unicode conversion, form data parsing, cookie management and much more in a django like manner.

Just subclass them and hook your own features in.

Reporter stream

A class that can wrap a wsgi.input stream so that it reports it’s progress into the active session, a file on the filesystem etc. This is very useful if you want to give your users a visual feedback for file uploads using AJAX.

Application debugger middleware

If you want to debug your WSGI application you can hook in the DebuggedApplication middleware that allows you to inspect the frames of tracebacks either by looking at the current locals and sourcecode or starting an interactive shell in one of the frames.

Shared data middleware

In production environments static data is usually served by a lightweight webserver like lighttpd or nginx. But during development it makes no sense to install another service on the computer so the SharedDataMiddleware can serve static files in your WSGI application.

Unicode aware data processing

The utils package contains functions that work like their counterparts in the builtin urllib or cgi module but are unicode aware. Per default they expect utf-8 strings like the request/response objects but you can pass an encoding to the too.

Mini template engine

For small projects you often face the problem that a real template engine means another requirement but the builtin string formattings (or string template) operations are not enough for the application. Werkzeug provides a minimal template engine that looks and behaves like the e-ruby template engine.

Context Locals

The Local object works pretty much like a normal thread local but it has support for py.magic greenlets too. Additionally there is a LocalManager that allows you to clean up all the context locals you have instanciated.

Test utilities

Werkzeug provides a Client class that can be used to test applications. Just instanciate it with the app and fire virtual requests.

copyright:

2007 by Armin Ronacher.

license:

BSD, see LICENSE for more details.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

Werkzeug-0.1.tar.gz (74.5 kB view details)

Uploaded Source

Built Distributions

Werkzeug-0.1-py2.5.egg (177.9 kB view details)

Uploaded Egg

Werkzeug-0.1-py2.4.egg (179.7 kB view details)

Uploaded Egg

File details

Details for the file Werkzeug-0.1.tar.gz.

File metadata

  • Download URL: Werkzeug-0.1.tar.gz
  • Upload date:
  • Size: 74.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Werkzeug-0.1.tar.gz
Algorithm Hash digest
SHA256 01943e0f3948010e0aa6a79dd252a8d0121ea1f18bc8bc263f3bed5612a3a184
MD5 28ae0702cd3af4f1c655e2f8273d8c9f
BLAKE2b-256 a5e7e8dcb0abe805e06cdb609dd1d9e188509345b51a2380c128aa189815437c

See more details on using hashes here.

File details

Details for the file Werkzeug-0.1-py2.5.egg.

File metadata

  • Download URL: Werkzeug-0.1-py2.5.egg
  • Upload date:
  • Size: 177.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Werkzeug-0.1-py2.5.egg
Algorithm Hash digest
SHA256 89985ad2b4303eafba238c0f882f1fb96db8425239b0c456cd91d9345ed2575c
MD5 2dd76797de7eabf0eee41e4d8c80ba73
BLAKE2b-256 52c8602aa58f9421671f3811c343575f43adf443e19082c2127d0784fb617b90

See more details on using hashes here.

File details

Details for the file Werkzeug-0.1-py2.4.egg.

File metadata

  • Download URL: Werkzeug-0.1-py2.4.egg
  • Upload date:
  • Size: 179.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Werkzeug-0.1-py2.4.egg
Algorithm Hash digest
SHA256 7087dbc6b2e9e86890010324b42b02af7104287545d1389546caa6558b14160a
MD5 3395e2c1770b2df9b26b5e33406b322c
BLAKE2b-256 379500a680f395343454bbd959e0798373a09798ee05e0b04aad20b0e3ebd16b

See more details on using hashes here.

Supported by

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