# bottlepy/bottle

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/bottlepy-bottle).**

8,770 stars · 1,503 forks · Python · MIT

## Links

- GitHub: https://github.com/bottlepy/bottle
- Homepage: http://bottlepy.org/
- awesome-repositories: https://awesome-repositories.com/repository/bottlepy-bottle.md

## Topics

`bottle` `python` `rest` `web-framework` `wsgi`

## Description

Bottle is a lightweight Python web micro-framework and template engine. It functions as a WSGI web framework that routes HTTP requests to Python functions to generate dynamic content.

The framework is distributed as a single Python file with no external dependencies. This minimalist distribution model allows for rapid application prototyping and the creation of web services with a small footprint.

The project provides capabilities for dynamic request routing, REST API development, and dynamic HTML rendering. It includes a built-in HTTP development server for web application hosting and a pluggable template system for injecting data into views.

## Tags

### Web Development

- [Micro-frameworks](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/micro-frameworks.md) — Provides a minimalist software library for constructing lightweight web APIs and basic web applications.
- [Python Web Frameworks](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/language-specific-ecosystems/python-web-frameworks.md) — Provides a flexible framework for developing web applications using the Python programming language.
- [Request Middleware](https://awesome-repositories.com/f/web-development/request-middleware.md) — Implements a pipeline of wrapper functions to process incoming HTTP requests and outgoing responses.
- [Request Routing](https://awesome-repositories.com/f/web-development/request-routing.md) — Maps incoming network requests to specific backend functions using dynamic URL patterns. ([source](https://github.com/bottlepy/bottle/blob/master/README.rst))
- [Single-File Web Frameworks](https://awesome-repositories.com/f/web-development/single-file-web-frameworks.md) — Distributed as a single Python file with no external dependencies for a minimalist footprint.
- [Web Application Frameworks](https://awesome-repositories.com/f/web-development/web-application-frameworks.md) — Provides a standard server interface to create lightweight web applications that handle HTTP requests. ([source](https://github.com/bottlepy/bottle/blob/master/pyproject.toml))
- [WSGI Application Servers](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/application-servers/wsgi-application-servers.md) — Implements a standard WSGI gateway interface to standardize communication between the web server and the application.
- [Pattern-Based Route Mapping](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/http-frameworks/http-route-handlers/pattern-based-route-mapping.md) — Matches incoming URL paths to handler functions by converting dynamic route patterns into regular expressions.
- [Dynamic Template Rendering](https://awesome-repositories.com/f/web-development/dynamic-template-rendering.md) — Generates HTML content by injecting data into views using a built-in or third-party engine. ([source](https://github.com/bottlepy/bottle/blob/master/README.rst))
- [HTML Templating Engines](https://awesome-repositories.com/f/web-development/html-templating-engines.md) — Includes a system for generating HTML content by injecting Python data into views.
- [Pluggable View Engines](https://awesome-repositories.com/f/web-development/html-templating-engines/pluggable-view-engines.md) — Provides a common rendering interface that allows switching between the built-in template system and external libraries.
- [RESTful API Development](https://awesome-repositories.com/f/web-development/restful-api-development.md) — Facilitates the development of backend endpoints that route network requests for data exchange.

### Software Engineering & Architecture

- [Single-File Framework Distributions](https://awesome-repositories.com/f/software-engineering-architecture/single-file-framework-distributions.md) — Packages the entire framework core into a single Python module to eliminate external dependencies.
- [Rapid Prototyping](https://awesome-repositories.com/f/software-engineering-architecture/development-methodologies/rapid-prototyping.md) — Enables rapid spinning up of functional web servers to test ideas without complex configuration.

### Data & Databases

- [Route Registries](https://awesome-repositories.com/f/data-databases/in-memory-data-stores/route-registries.md) — Implements an in-memory registry to store and quickly look up URL patterns and their associated callbacks.

### User Interface & Experience

- [HTML Template Renderers](https://awesome-repositories.com/f/user-interface-experience/layout-utilities/presentation-engines/template-engines/server-side-rendering-engines/html-template-renderers.md) — Generates dynamic web pages by injecting Python data into templates for browser delivery.

### Part of an Awesome List

- [Web Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/web-frameworks.md) — Simple micro-framework for web apps.
