Fresco: a Python web micro-framework¶
Fresco makes writing web apps easy:¶
from fresco import FrescoApp, Response
def hello():
return Response("<h1>Hello World!</h1>")
app = FrescoApp()
app.route('/', GET=hello)
$ pip install fresco gunicorn
$ gunicorn hello:app
Why Fresco?¶
No restrictions on your choice of templating, database or other libraries.
Simple, powerful URL routing, request and response objects.
Zero dependencies. Python 3 ready. Python 2 supported.
Documentation contents¶
- Overview of a Fresco application
- Configuration: settings and options
- API reference: fresco.options
- Routing
- Constructing Routes
- Response filters
- Before hooks
- Passing request data to the view
- Passing the entire request or form dictionary
- Other request object parameters
- Adding custom route converters
- Reverse routing - Generating URLs
- Multiple routes, same view
- Default route parameters
- Including and delegating routes
- Fallthrough
- API reference: fresco.routing
- API reference: fresco.routeargs
- The Request Class
- API reference: fresco.request
- The Response Class
- API reference: fresco.response
- Cookies
- API reference: fresco.cookie
- Sessions
- Application Hooks
- Error handling
- Subrequests
- Upgrading from earlier versions of Fresco
- Upgrading from Pesto
- API docs: fresco.core
- API docs: fresco.multidict
- API docs: fresco.exceptions
- API docs: fresco.util