Questions tagged [bottle]

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
996 views

Using a dictionary template for consistent response structure from an API

I am making a simple API for news items using Python and the Bottle framework. I return a Python dictionary from my endpoints as Bottle converts this to JSON automatically in the response to the ...
Chris's user avatar
  • 226
1 vote
1 answer
3k views

SQLite and Python: commit once every 10 seconds maximum, and not after every client request

In a Python Bottle server using SQLite, I noticed that doing a DB commit after each INSERT is not efficient: it can use 100ms after each client request. Thus I wanted to improve this in How to commit ...
Basj's user avatar
  • 264
4 votes
0 answers
1k views

REST service API using Python Bottle

I am working on a sample REST service to study testing related aspects using the Python Bottle framework. I read a lot about REST but I do not have a lot of practical experience designing RESTful APIs ...
tired_of_nitpickers's user avatar
2 votes
1 answer
2k views

Super simple way of generating dynamic interfaces in Python both CLI and Web GUI

I want to know if this is a good idea. It is definitely only a proof of concept at this point, but if it's a good idea I would pursue the development into a more mature product. There are three ...
iLoveTux's user avatar
  • 161
4 votes
1 answer
197 views

Making a webapp using Bottle

Here is a screenshot of my setup: Here is the actual code: ...
Dimitri S's user avatar
0 votes
1 answer
3k views

Upload document to mongodb

Simple post and download web app in Bottle: server.py ...
Jeff's user avatar
  • 459
3 votes
2 answers
4k views

Accessing a global list [closed]

I'm sort of at a loss for what to do with webapps and whether what I'm doing is actually allowed or not. Here is a sample of the type of thing I'm doing at the moment. I need a list that is accessible ...
Tadgh's user avatar
  • 195
6 votes
1 answer
325 views

Load drinks and their ingredients into dictionaries

I'm working on a web application using Bottle, and it is, at this point, functional. The gist of it is that I have a database of drinks, with associated IDs, and associated sets of ingredients. the ...
Tadgh's user avatar
  • 195