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.
16 questions
2
votes
0
answers
321
views
Production ready user signup, login and logout using python and tornado
Please review my code with the following in mind: Does anyone see a reason to make this asynchronous, why would i do that? How do i work out the maximum number of users it can handle at one time? at ...
2
votes
0
answers
111
views
Structure and Code of Tornado WebAPP
I wrote a test application to familiarize myself with the Tornado Python framework. The application currently generates a cookie that you can view and delete. I ...
4
votes
0
answers
296
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
2
answers
3k
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
0
answers
310
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
0
answers
265
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 ...
5
votes
2
answers
5k
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
1
answer
1k
views
6
votes
1
answer
338
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
1
answer
523
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
0
answers
310
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 app ...
2
votes
1
answer
285
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 ...
6
votes
1
answer
2k
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
1
answer
1k
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
1
answer
161
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 ...