How bottlepy/bottle works
Bottle is a single-file Python WSGI microframework. Its main workflow is an HTTP request reaching a server adapter, being mapped by URL routing to an application function, and producing a response; handlers can render templates. The README also identifies HTTP utilities and support for external WSGI servers and template engines. The source excerpt is partial, so the graph preserves documented capabilities but does not infer internal calls between framework components.
Main entry points: bottle.py Server Adapters
Components 13
Request Handling
- URL Routing
bottle.py - Request Dispatch
bottle.py - Plugin Support
bottle.py - Application Configuration
bottle.py
HTTP Features
- Request Data
bottle.py - HTTP Response
bottle.py - HTTP Utilities
bottle.py - File Uploads
bottle.py
Rendering and Servers
- Server Adapters
bottle.py - Built-in Templates
bottle.py - External Engines
bottle.py
Other components
- HTTP Client
- Application Handler
Connections 7
- HTTP Client → Server Adapters: sends request
README.rst - Server Adapters → URL Routing: serves requests
README.rst - URL Routing → Request Dispatch: maps URL
README.rst - Request Dispatch → Application Handler: calls handler
README.rst - Application Handler → Built-in Templates: renders template
README.rst - Application Handler → External Engines: may render with
README.rst - Server Adapters → HTTP Response: serves response
bottle.py