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.
8
questions
1
vote
1answer
17 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 ...
1
vote
1answer
175 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 ...
4
votes
0answers
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 ...
2
votes
1answer
1k 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 ...
4
votes
1answer
183 views
0
votes
1answer
3k views
3
votes
2answers
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 ...
6
votes
1answer
193 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 ...