Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bottle.py is a fast and simple micro-framework for python web-applications.

License

NotificationsYou must be signed in to change notification settings

bottlepy/bottle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bottle LogoTests StatusLatest VersionLicense

Bottle: Python Web Framework

Bottle is a fast, simple and lightweightWSGI micro web-framework forPython. It is distributed as a single file module and has no dependencies other than thePython Standard Library.

  • Routing: Requests to function-call mapping with support for clean and dynamic URLs.
  • Templates: Fastbuilt-in template engine and support formako,jinja2 andcheetah templates.
  • Utilities: Convenient access to form data, file uploads, cookies, headers and other HTTP features.
  • Server: Built-in development server and ready-to-use adapters for a wide range ofWSGI capable HTTP server (e.g.gunicorn,paste orcheroot).

Homepage and documentation:http://bottlepy.org

Example: "Hello World" in a bottle

frombottleimportroute,run,template@route('/hello/<name>')defindex(name):returntemplate('<b>Hello {{name}}</b>!',name=name)run(host='localhost',port=8080)

Run this script or paste it into a Python console, then point your browser tohttp://localhost:8080/hello/world. That's it.

Download and Install

Install the latest stable release withpip install bottle or downloadbottle.py (unstable) into your project directory. There are no hard dependencies other than the Python standard library.

License

Code and documentation are available according to the MIT License (seeLICENSE).

The Bottle logo however isNOT 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.

About

bottle.py is a fast and simple micro-framework for python web-applications.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp