/tornado-structure

Python tornado project structure

Primary LanguagePythonApache License 2.0Apache-2.0

Build Status Coverage Status

tornado-structure

Python tornado project structure

Create Virtualenv and Install requirements

  • Create virtualenv: python3 -m venv env
  • Activate virtualenv: source env/bin/activate
  • Install requirements: pip install requirements.txt

Run sever

python app.py

Set port using command line:

python app.py --port=8000

Enable DEBUG by set environment variable:

export DEBUG=1

Run tests

python -m unittest

Run scripts

python -m sample.scripts.hello

Reference

  1. Repository Structure and Python
  2. Django Project Structure