Python for real time website

I am trying to learn web programming in python and mean the following project: my yahoo finance api for tool data and its real-time display, as well as graphical charts based on tool data.

I have already done something similar using wxpython, and I am interested in how to do this in a web application.

My first thought was to use django and matplotlib on the server, and the client request updated the graphics via jquery after a certain period of time, but after a little research I came across libraries like twisted and tornado ... and now I'm confused. Will they work better for this web application than django?

After the above, I wonder: what library should I use to write the web application that I have in mind? I also think I should give up matplotlib and create a client-side diagram, but I'm not sure if the javascript library will let me do this, if any.

+5
source share
1 answer

A few tips:

1 / Do not create your data on the internal network. Instead, use browsers to create charts. I would recommend using jqplot , or highcharts .

2 / Yes, you can use tornadoes or twist instead of django, since they are asynchronous servers and will provide faster request processing.

3/ REST , JSON .

4/ Backbone.js (, MVC), , .

+5

All Articles