Hacker GitHub

← All repos

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

Mentions per year 24 mentions · busiest year 2020 (4)
20082026
  1. …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
  2. …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:…
  3. This post inspired me to check on Bottle, and it can't say the same: https://github.com/bottlepy/bottle
  4. …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
  5. …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...
  6. …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?
  7. …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?
  8. 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?
  9. …management to speak of, or wasn't allowed to use external dependency. Copy a single file and done. https://github.com/bottlepy/bottle
  10. …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
  11. https://github.com/bottlepy/bottle A single file running both in python 2.7 and 3.
  12. …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
  13. …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
  14. …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?
  15. 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?
  16. 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
  17. https://github.com/defnull/bottle
  18. 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
  19. 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…
  20. …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)
  21. 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)
  22. …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