All Projects → pallets → Werkzeug

pallets / Werkzeug

Licence: bsd-3-clause
The comprehensive WSGI web application library.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Werkzeug

Flask
The Python micro framework for building web applications.
Stars: ✭ 57,408 (+871.37%)
Mutual labels:  wsgi, werkzeug, pallets
website
Website for the Pallets projects
Stars: ✭ 126 (-97.87%)
Mutual labels:  werkzeug, pallets
secure-cookie
Secure cookies and sessions for WSGI
Stars: ✭ 30 (-99.49%)
Mutual labels:  wsgi, werkzeug
plaster
Application config settings abstraction layer.
Stars: ✭ 19 (-99.68%)
Mutual labels:  wsgi
wsgi lineprof
WSGI middleware for line-by-line profiling
Stars: ✭ 47 (-99.2%)
Mutual labels:  wsgi
datdot-node-rust
datdot blockchain node in rust
Stars: ✭ 43 (-99.27%)
Mutual labels:  pallets
Serverless Wsgi
Serverless plugin to deploy WSGI applications (Flask/Django/Pyramid etc.) and bundle Python packages
Stars: ✭ 377 (-93.62%)
Mutual labels:  wsgi
flask-redis-docker
A minimal template for dockerized flask app with redis task queue
Stars: ✭ 49 (-99.17%)
Mutual labels:  wsgi
flask-rest-api
This program shows how to set up a flaskrestapi with postgre db, blueprint, sqlalchemy, marshmallow, wsgi, unittests
Stars: ✭ 28 (-99.53%)
Mutual labels:  wsgi
spectree
API spec validator and OpenAPI document generator for Python web frameworks.
Stars: ✭ 190 (-96.79%)
Mutual labels:  wsgi
wheezy.web
A lightweight, high performance WSGI web framework with the key features to build modern, efficient web.
Stars: ✭ 16 (-99.73%)
Mutual labels:  wsgi
WSocket
Simple WSGI HTTP + Websocket Server, Framework, Middleware And App.
Stars: ✭ 19 (-99.68%)
Mutual labels:  wsgi
django-http-exceptions
HTTP exceptions for django
Stars: ✭ 29 (-99.51%)
Mutual labels:  wsgi
hypercorn-fastapi-docker
Docker image with Hypercorn for FastAPI apps in Python 3.7, 3.8, 3.9. Ready for HTTP2 and HTTPS
Stars: ✭ 18 (-99.7%)
Mutual labels:  wsgi
Zope
Zope is an open-source web application server.
Stars: ✭ 256 (-95.67%)
Mutual labels:  wsgi
prestans
A WSGI compliant REST micro-framework.
Stars: ✭ 14 (-99.76%)
Mutual labels:  wsgi
uwsgiconf
Configure uWSGI from your Python code
Stars: ✭ 75 (-98.73%)
Mutual labels:  wsgi
Wsgidav
A generic and extendable WebDAV server based on WSGI
Stars: ✭ 476 (-91.95%)
Mutual labels:  wsgi
Pyramid
Pyramid - A Python web framework
Stars: ✭ 3,615 (-38.83%)
Mutual labels:  wsgi
httoop
HTTOOP - a fully object oriented HTTP protocol library written in python
Stars: ✭ 15 (-99.75%)
Mutual labels:  wsgi

Werkzeug

werkzeug German noun: "tool". Etymology: werk ("work"), zeug ("stuff")

Werkzeug is a comprehensive WSGI web application library. It began as a simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility libraries.

It includes:

  • An interactive debugger that allows inspecting stack traces and source code in the browser with an interactive interpreter for any frame in the stack.
  • A full-featured request object with objects to interact with headers, query args, form data, files, and cookies.
  • A response object that can wrap other WSGI applications and handle streaming data.
  • A routing system for matching URLs to endpoints and generating URLs for endpoints, with an extensible system for capturing variables from URLs.
  • HTTP utilities to handle entity tags, cache control, dates, user agents, cookies, files, and more.
  • A threaded WSGI server for use while developing applications locally.
  • A test client for simulating HTTP requests during testing without requiring running a server.

Werkzeug doesn't enforce any dependencies. It is up to the developer to choose a template engine, database adapter, and even how to handle requests. It can be used to build all sorts of end user applications such as blogs, wikis, or bulletin boards.

Flask wraps Werkzeug, using it to handle the details of WSGI while providing more structure and patterns for defining powerful applications.

Installing

Install and update using pip:

pip install -U Werkzeug

A Simple Example

from werkzeug.wrappers import Request, Response

@Request.application
def application(request):
    return Response('Hello, World!')

if __name__ == '__main__':
    from werkzeug.serving import run_simple
    run_simple('localhost', 4000, application)

Donate

The Pallets organization develops and supports Werkzeug and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].