Skip to content

fe11x/tornado_tcpserver_coroutine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puller

Worker for pulling data from remote HM sensors.

Setup for Linux

Dependencies Setup

In the root of Pull, execute pip install -r requirements.txt.

Database Setup

  1. Edit alembic.ini. Replace the default sqlalchemy.url with yours.
  2. (optional) Edit migrations/env.py. Find target_metadata = Base.metadata and replace with your metadata.
  3. cd to the root of Puller. Then type command alembic revision --auto-generate -m 'your comment'.
  4. Execute alembic upgrade head

Note: You need to execute Step 3 and Step 4 every time you change the models.

For integrating RabbitMQ to Tornado

References:

Tornado Adapter API

Tornado Consumer Example

About

Implemented a TCP server that is capable of holding and processing thousands TCP connections by using Tornado's TCPServer and Coroutine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.5%
  • Mako 2.5%