bottlepy/bottle
View on GitHub ↗ ★ 8,801 Python
bottle.py is a fast and simple micro-framework for python web-applications.
24 mentions on Hacker News by 23 people: 2 stories, 22 comments · first 2009-12-03 · latest 2025-12-02
20082026
-
…ps://bottlepy.org/docs/dev/api.html#request-context A bad idea in retrospect, but hard to change now: https://github.com/bottlepy/bottle/issues/761
comment by JodieBenitez · 2025-12-02 · in Response to "Ruby Is Not a Serious Programming Language" -
…web microframework, about 3x faster, saner, and more memory-efficient than Flask in my experience: https://github.com/bottlepy/bottle Fossil: distributed version control and much more in a single executable, from the creators of SQLite:…
comment by QuadrupleA · 2023-12-02 · in Ask HN: What are some unpopular technologies you wish people knew more about? -
This post inspired me to check on Bottle, and it can't say the same: https://github.com/bottlepy/bottle
comment by Lammy · 2022-07-01 · in There are no open issues or pull requests on Flask -
…file library (around 4k line) and has no dependencies other than the Python Standard Library. https://github.com/bottlepy/bottle/blob/master/bottle.py The other is Tornado. https://github.com/tornadoweb/tornado
comment by yla92 · 2021-12-27 · in Ask HN: Good Python projects to read for modern Python? -
…up in urllib. Bottle does use parts of urllib but appears to do it's own splitting on ampersands: https://github.com/bottlepy/bottle/blob/d1413a81ead7a6f130a0...
comment by tyingq · 2021-12-26 · in I found (and fixed) a vulnerability in Python -
…in one single line. I doubt that they do it to ease maintenance and to avoid feature creep. [1]: https://github.com/bottlepy/bottle/issues/1158#issuecomment-... [2]: https://github.com/bottlepy/bottle/blob/master/bottle.py [3]:…
comment by timeattack · 2020-01-11 · in Why should bottlepy stick to a file? -
…literally uses package management to install and maintain bottle. Bottle has code like this - https://github.com/bottlepy/bottle/blob/master/bottle.py#L81... - which does check for external dependencies (which predicate a package manager)
comment by sandGorgon · 2020-01-11 · in Why should bottlepy stick to a file? -
The (admittedly biased) history of bottle and flask from the author was fascinating https://github.com/bottlepy/bottle/issues/1158#issuecomment-...
comment by hermanradtke · 2020-01-11 · in Why should bottlepy stick to a file? -
…management to speak of, or wasn't allowed to use external dependency. Copy a single file and done. https://github.com/bottlepy/bottle
comment by user5994461 · 2019-12-06 · in Show HN: A Go web server with logging, tracing, and demo apps in a single file -
…to other frameworks. But not so easy to fit in your head anymore... or I'm just getting older. [0]: https://github.com/bottlepy/bottle/blob/master/bottle.py
comment by oneweekwonder · 2018-02-15 · in Understanding how Django makes use of WSGI to turn a request into a response -
https://github.com/bottlepy/bottle A single file running both in python 2.7 and 3.
comment by dorfsmay · 2017-03-13 · in Ask HN: What are some examples of good code? -
…of the the web stuff, Sqlalchemy[2] is good [0] - https://github.com/tornadoweb/tornado [1] - https://github.com/bottlepy/bottle [2] - https://github.com/zzzeek/sqlalchemy
comment by matt_o · 2016-12-20 · in One Way to Improve Your Coding -
…micro-framework Bottle includes a simple template engine taking about 150 lines over two classes: https://github.com/bottlepy/bottle/blob/master/bottle.py#L34...
comment by Poiesis · 2015-09-28 · in 500 Lines or Less – A Template Engine -
…A lot of code that does a lot. Bottle is nice on the web dev front. https://github.com/bottlepy/bottle/blob/master/bottle.py
comment by lqdc13 · 2015-07-17 · in Ask HN: Good Python codebases to read? -
Bottle: https://github.com/bottlepy/bottle It's a nice, small, fast web framework. Great for building APIs. Also, it's one ~3k loc, readable file.[1] [1] https://github.com/bottlepy/bottle/blob/master/bottle.py
comment by jscottmiller · 2015-07-16 · in Ask HN: Good Python codebases to read? -
Bottle uses `wsgiref` ( https://github.com/defnull/bottle/blob/master/bottle.py#L263... ) by default as its server. Per the name, it is a reference implementation of a WSGI server. No one should really use `wsgiref` for an application they…
comment by mace · 2013-08-19 · in Python vs Go - Requests per Second -
https://github.com/defnull/bottle
comment by Cieplak · 2012-05-26 · in A small fast and cute web framework in Python. -
Flask is clearly a better framework than bottle. I started with bottle and hit a bug. ( https://github.com/defnull/bottle/issues/192 ). I had to switch to flask to avoid it.
comment by yashh · 2011-08-28 · in Python web micro-framework battle -
I must have been mistaken for static files, for templates however it is the case: https://github.com/defnull/bottle/blob/master/bottle.py#L263... You can override it but you would have to do that for every call to `template` or by monkey…
comment by DasIch · 2011-06-28 · in Flask 0.7 Released (Python Web Framework) -
…that all resources(templates, static files, etc.) Reading the source, I see no evidence of this. https://github.com/defnull/bottle/blob/master/bottle.py#L161...
comment by oinksoft · 2011-06-28 · in Flask 0.7 Released (Python Web Framework) -
This looks really similar to Bottle. http://github.com/defnull/bottle I haven't looked at the source, and the documentation is nonexistent, but the example app and the routing look really close. See http://bottle.paws.de/ also. Edit: Made…
comment by theli0nheart · 2010-04-02 · in Denied: Python Micro-Framework (Sinatra-like) -
…comments (kangax[2] often has concise, prescient suggestions for changes), and the like. [1] - http://github.com/defnull/bottle/ [2] - http://github.com/kangax
comment by clutchski · 2009-12-03 · in Programmer search engine