Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bottlepy/bottle
bottle.py is a fast and simple micro-framework for python web-applications.
https://github.com/bottlepy/bottle
bottle python rest web-framework wsgi
Last synced: about 1 month ago
JSON representation
bottle.py is a fast and simple micro-framework for python web-applications.
- Host: GitHub
- URL: https://github.com/bottlepy/bottle
- Owner: bottlepy
- License: mit
- Created: 2009-06-30T17:51:30.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T10:31:03.000Z (4 months ago)
- Last Synced: 2024-03-26T08:32:56.509Z (3 months ago)
- Topics: bottle, python, rest, web-framework, wsgi
- Language: Python
- Homepage: http://bottlepy.org/
- Size: 6.14 MB
- Stars: 8,264
- Watchers: 313
- Forks: 1,458
- Open Issues: 335
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Authors: AUTHORS
Lists
- Fuchsia-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Shopify-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Virtualization-Emulation-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools / Interfaces)
- TensorFlow-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Jupyter-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Apache-Spark-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Bioinformatics-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- CoreML-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks, Libraries, and Tools)
- Android-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools / VS Code Extensions for Developer Productivity)
- Apache-Kafka-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Firmware-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Blockchain-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools / E-Books)
- Apache-Airflow-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Oracle-Cloud-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Deep-Learning-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks, Libraries, and Tools / viii. Linear Regression)
- Autonomous-Systems-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks, Libraries, and Tools / viii. Linear Regression)
- ARM-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- PyTorch-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Computer-Vision-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks, Libraries, and Tools / viii. Linear Regression)
- Parallel-Computing-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- VMware-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- CUDA-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- macOS-iOS-iPadOS-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools / Objective-C Tools, Libraries, and Frameworks)
- NLP-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks, Libraries, and Tools)
- VSCode-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Learning Resources / JavaScript Libraries for Machine Learning)
- Developer-Handbook - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Tools / Mesh networks)
- Python-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks, Libraries, and Tools)
- Robotics-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- Distributed-Systems-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools)
- IoT-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools / In-memory data grids)
- Self-Hosting-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools / In-memory data grids)
- awesome-stars - bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- awesome-stars - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- AWS-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks and Tools / Interfaces)
- awesome-stars - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- awesome-python-web-frameworks - Bottle - a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library. (Micro-frameworks / Sync)
- awesome-from-stars - bottlepy/bottle - framework for python web-applications. (HarmonyOS / Windows Manager)
- awesome-stars - bottle - framework for python web-applications. | bottlepy | 7372 | (Python)
- awesome-stars - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- awesome-stars - bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- awesome-huzhi - bottle
- my-awesome-stars - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- awesome-stars - bottle - framework for python web-applications. | bottlepy | 7207 | (Python)
- my-stars - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- Unreal-Engine-Guide - Bottle - framework for Python. It is distributed as a single file module and has no dependencies other than the [Python Standard Library](https://docs.python.org/library/). (Python Frameworks, Libraries, and Tools / viii. Linear Regression)
- awesome-starred - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (python)
- awesome-stars - bottlepy/bottle - `★8322` bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- awesome-stars - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- my-awesome-stars - bottlepy/bottle - bottle.py is a fast and simple micro-framework for python web-applications. (Python)
- zero - bottle - framework for web-applications | Python | MIT | (Members)
README
.. image:: http://bottlepy.org/docs/dev/_static/logo_nav.png
:target: http://bottlepy.org/
:alt: Bottle Logo
:align: right.. image:: https://github.com/bottlepy/bottle/workflows/Tests/badge.svg
:target: https://github.com/bottlepy/bottle/workflows/Tests
:alt: Tests Status.. image:: https://img.shields.io/pypi/v/bottle.svg
:target: https://pypi.python.org/pypi/bottle/
:alt: Latest Version.. image:: https://img.shields.io/pypi/l/bottle.svg
:target: https://pypi.python.org/pypi/bottle/
:alt: License.. _mako: http://www.makotemplates.org/
.. _cheetah: http://www.cheetahtemplate.org/
.. _jinja2: http://jinja.pocoo.org/
.. _paste: https://pythonpaste.readthedocs.io/
.. _fapws3: https://github.com/william-os4y/fapws3
.. _bjoern: https://github.com/jonashaag/bjoern
.. _cherrypy: https://docs.cherrypy.dev/
.. _WSGI: https://wsgi.readthedocs.io/
.. _Python: http://python.org/============================
Bottle: Python Web Framework
============================Bottle is a fast, simple and lightweight WSGI_ micro web-framework for Python_. It is distributed as a single file module and has no dependencies other than the `Python Standard Library `_.
* **Routing:** Requests to function-call mapping with support for clean and dynamic URLs.
* **Templates:** Fast and pythonic `*built-in template engine* `_ and support for mako_, jinja2_ and cheetah_ templates.
* **Utilities:** Convenient access to form data, file uploads, cookies, headers and other HTTP-related metadata.
* **Server:** Built-in HTTP development server and support for paste_, fapws3_, bjoern_, `Google App Engine `_, cherrypy_ or any other WSGI_ capable HTTP server.Homepage and documentation: http://bottlepy.org
Example: "Hello World" in a bottle
----------------------------------.. code-block:: python
from bottle import route, run, template
@route('/hello/')
def index(name):
return template('Hello {{name}}!', name=name)run(host='localhost', port=8080)
Run this script or paste it into a Python console, then point your browser to ``_. That's it.
Download and Install
--------------------.. __: https://github.com/bottlepy/bottle/raw/master/bottle.py
Install the latest stable release with ``pip install bottle`` or download `bottle.py`__ (unstable) into your project directory. There are no hard dependencies other than the Python standard library. Bottle runs with **Python 2.7 and 3.6+**.
License
-------.. __: https://github.com/bottlepy/bottle/raw/master/LICENSE
Code and documentation are available according to the MIT License (see LICENSE__).
The Bottle logo however is *NOT* covered by that license. It is allowed to use the logo as a link to the bottle homepage or in direct context with the unmodified library. In all other cases, please ask first.