Questions tagged [tornado]

Tornado is a scalable web server and web framework for Python specializing in handling thousands of simultaneous connections and real-time services.

Filter by
Sorted by
Tagged with
4
votes
0answers
55 views

Python server that performs sentiment analysis on Twitter data

I have a fully working Python server that utilizes Tornado, asyncio, websockets and tweepy(Twitter's Streaming api). The main point of this server is to receive a query from the user, call upon tweepy ...
1
vote
2answers
96 views

Thread-safe singleton cache (Python)

In a service I'm developing I'm using three cloud services (five if you count additional two streaming services I have to create that are used by those cloud services in turn) and to orchestrate bits ...
2
votes
0answers
136 views

Google OAuth Boilerplate in Python Tornado

I recently started a project using python-tornado, and needed to implement google OAuth to manage user logins. I struggled getting this working in the context of the project, and decided to abstract ...
2
votes
0answers
187 views

Tornado API example with Momoko and RealDictCursor

I'm learning Tornado and Momoko for an upcoming project and I made a simple API with a GET user/{id} endpoint that queries a database in order to search a User from ...
3
votes
2answers
2k views

Python WebSocket Server + SQLite + Multiprocessing

I have been wanting to learn more about developing web applications using WebSockets so, with the help of various online tutorials, I built a little Python WebSocket server using Tornado and SQLite. ...
2
votes
1answer
796 views

Tornado: async calls and DB caching

...
6
votes
1answer
279 views

Tornado chat with SockJS and Redis

I have Tornado chat with export to Redis. Other scripts will export messages from Redis to MongoDB in the time. It works, but how is it written? ...
7
votes
1answer
317 views

Refactoring of a client API to avoid duplicated code and unclear passage of parameters

I need to develop an API. The functions of the API are requests that call the services exposed by a server. Initially the API worked like this: ...
2
votes
0answers
244 views

OAuth2 Client for Reddit, written using Tornado

I have a written some code which helps me to get OAuth Access Code from Reddit. Reddit uses standard OAuth2, so like any other OAuther server, here's are the steps to perform: The client/app sends ...
2
votes
1answer
250 views

Website monitor - if site is down, kill the process, contact admin and restart server

My Python-based web server (Tornado module) is pretty complex and keeps going down (seems like usually in the middle of the night), so here's a bash script that kills the process, restarts and emails ...
5
votes
1answer
1k views

Oauth 2.0 handler functions for Tornado

With Tornado 3.2 they made some updates to auth module and have updated the code. Earlier I was using open id for Google login, since it will be deprecated in the future I am switching the code to ...
3
votes
1answer
915 views

Tornado quiz app

I am writing a simple quiz app using Tornado and MongoDB. The user authentication is done using Facebook and each user is uniquely identified by their Facebook ID. When a user first creates an account,...
3
votes
1answer
127 views

Tornado PyMongo product wishlist

I am writing a Tornado app in which a user can maintain his products wishlist. There are two collections, users and products. As ...
5
votes
1answer
3k views

Is there a better way to do get/set periodically in tornado?

I use a global variable to fit my need: ...