Skip to main content

Posts

Showing posts from February, 2016

Making web app with bottle and python Tutorial - part 5 - Weaving the weather app

In the previous part we have seen how bottle works and some other magic that bottle can do for us. In this part we will create our weather web app Weave . This part will be more challenging when compared to other parts because you will learn a lot after completing this part and will be satisfied using bottle .  If you have come here without seeing the previous parts then the pre-requisite for understanding this part is a little knowledge of python requests module , bottle framework and obviously python .  Okay folks fasten your seat belts and get ready for take off ;). As you all know as we will be creating our weather app using API's from IPInfoDB and OpenWeatherMap first go create an account on both the sites: OpenWeather Members Signup  and IPInfo Create Free Account . At this point please make a note that I will represent my API key as '#####' and you should replace it with the corresponding API key that you have got from the website after signing up.

Making web app with bottle and python Tutorial - part 4 - Extending your bottle knowledge

Previous Part: Making web app with bottle and python - part 3 - Creating a basic bottle application In the previous part we have seen how to create a basic bottle web application and run the server . We have also seen on how to use template files with bottle. In this part we will use our knowledge and see some more concepts that we have not covered in the previous tutorial.  This part will be a smaller one! Let us start off with how to change the content of the template depending on the user input. Here user input refers to the ' url ' and not submitting the HTML forms . We will be using the dynamic url concept that we have learnt earlier in this section. Let's say I have the following tpl file written in HTML and CSS : <!doctype html> <html> <head> <title> Radius Of Circle </title> <meta charset= 'utf-8' /> <style type= "text/css" > .heading { text-align : center ; } </style

Making a web app with bottle and python tutorial series - part 3 - Creating a basic bottle application

Previous Part: Making a Bottle app with Python Tutorial Part 2 - Introduction to python Requests module In this part you will be introduced to basic concepts in bottle framework and then we will extend these concepts in the further tutorials(parts).  Pre-requisite  Before we start using bottle framework we will have to either install the bottle framework  or simply download the file to the working directory(The folder in which you are going to create the web app).  If you are new to using command prompt then see the following video(13:25) : Installing on your computer If you want to install the bottle , then open your command prompt, now you should see something like this: Microsoft Windows [ Version 10 . 0 . 10586 ] ( c ) 2015 Microsoft Corporation. All rights reserved. C : \ Users \ anivarth > Next type the following after the ' > ': C: \Users\anivarth > pip install bottle That's it you are done, you have installed bottle on your comput