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.

Bottle

Bottle is a fast, simple and lightweight micro web-framework for . It is distributed as a single file module and has no dependencies other than the Python Standard Library.

Bottle is designed for prototyping and building small web applications and services. It allows you to get things done quickly, but misses some of the advanced features and ready-to-use solutions found in other frameworks (such as MVC, ORM, form validation, scaffolding and XML-RPC).

Features

  • Routing: Requests to function-call mapping with support for clean and dynamic URLs.
  • Templates: Fast and pythonic built-in template engine and support for mako, jinja2 and cheetah templates.
  • Utilities: Convenient access to form data, file uploads, cookies, headers and other HTTP-related metadata.
  • Server: Built-in HTTP development server and support for paste, fapws3, bjoern, gae, cherrypy or any other WSGI capable HTTP server.

Resources

1464 questions
-2
votes
1 answer

How to "select file" with a Python script in Google App Engine?

I'm trying to create an online application for a Python function I have created. In my script, I input the path of my file for the computer (input_path = '/users/user/desktop/input.txt') but I'm not sure how to go about this using Google App…
O.rka
  • 24,289
  • 52
  • 152
  • 253
-2
votes
1 answer

Writing an API using bottle/flask to build data visualizations

I am trying to write an API that will read the data fed through a UI, filter the data and feed the data to a set of Javascript (D3) visualizations that I created and output the result as SVG/PNG/PDF. How am I going to implement this ? Let me know…
Shubham24
  • 1
  • 2
-2
votes
1 answer

I am running a bottle.py baesd web service in google app engine.But how can i connect it to GAE database NOSql

i am running a webservice in localhost in my system. i have connected it to the MYsql.and it is working fine. but when it comes to googleappengine how can i connect to NOsql. this is my code: import bottle import webapp2 from bottle import route,…
-3
votes
2 answers

HTML posted form data gets written as jibberish into MySQL database

When i try to enter data in a text field in Greek letters my wsgi script saves that data as jibberish in the MySQL database and i dont know why. Here is the relative code when the data is about to be posted via form method: pdata = pdata + '''
-3
votes
1 answer

base.tpl is not properly read by bottle

I have downloaded some sample tpl files from the internet, i wanted to customise menu on my site thus i was trying to create new base.tpl file. However when I have saved it bottle does not want to read it and and return that: bottle.TemplateError:…
mkropkowski
  • 107
  • 7
-3
votes
2 answers

Is it possible to use Bottle's/Flask's statement and functions from within a template?

I was wondering if i can use the static_file() from withing a template as follows: {{ static_file( filename, root=filepath, download=True ) }} Can it be written like that? And if can, then how i will be able to substitite the variables within the…
-5
votes
1 answer

Can a python file run on a Raspberry Pi?

I have developed a webserver in Python (using Bottle). In this moment it runs on my laptop, but in future it will run on a board (like Raspberry). The webserver shows a html page that allow to the users to put some data and it should save locally…
lucacatr
  • 91
  • 2
  • 11
-6
votes
1 answer

Using Bottle, need to create web-page

I'm relatively new with python. I'm creating a webpage and hosting it using heroku which supports bottle framework. I need to create a website which takes data from a user and does some computation with it. For this i require text boxes and submit…
-8
votes
1 answer

Any other way to write this statement

I'm trying to write this statement in some other way. True if 'sessionid' in request.cookies else False Please help me with this.
Sanjay Tarani
  • 11
  • 1
  • 5
1 2 3
97
98