├── .gitignore ├── README.md ├── alembic.ini ├── config.py ├── controllers ├── index.py ├── kindle.py ├── login.py ├── mailgun.py ├── natproxy.py ├── register.py └── utils.py ├── deploy.yml ├── gunicorn_config.py ├── loadbp.py ├── main.py ├── migrations ├── README ├── env.py ├── script.py.mako └── versions │ ├── .keep │ ├── 6f6e687b201d_add_natproxy_status.py │ ├── ae93f7357766_init.py │ └── d73781edf416_add_kindle.py ├── models ├── __init__.py ├── base.py ├── kindle.py └── user.py ├── requirements.txt ├── revision.sh ├── static └── share.png └── templates ├── base.html ├── index.html └── kindle.html /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.pyc 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/alembic.ini -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/config.py -------------------------------------------------------------------------------- /controllers/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/controllers/index.py -------------------------------------------------------------------------------- /controllers/kindle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/controllers/kindle.py -------------------------------------------------------------------------------- /controllers/login.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/controllers/login.py -------------------------------------------------------------------------------- /controllers/mailgun.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/controllers/mailgun.py -------------------------------------------------------------------------------- /controllers/natproxy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/controllers/natproxy.py -------------------------------------------------------------------------------- /controllers/register.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/controllers/register.py -------------------------------------------------------------------------------- /controllers/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/controllers/utils.py -------------------------------------------------------------------------------- /deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/deploy.yml -------------------------------------------------------------------------------- /gunicorn_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/gunicorn_config.py -------------------------------------------------------------------------------- /loadbp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/loadbp.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/main.py -------------------------------------------------------------------------------- /migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/migrations/env.py -------------------------------------------------------------------------------- /migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/migrations/script.py.mako -------------------------------------------------------------------------------- /migrations/versions/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/versions/6f6e687b201d_add_natproxy_status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/migrations/versions/6f6e687b201d_add_natproxy_status.py -------------------------------------------------------------------------------- /migrations/versions/ae93f7357766_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/migrations/versions/ae93f7357766_init.py -------------------------------------------------------------------------------- /migrations/versions/d73781edf416_add_kindle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/migrations/versions/d73781edf416_add_kindle.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/models/base.py -------------------------------------------------------------------------------- /models/kindle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/models/kindle.py -------------------------------------------------------------------------------- /models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/models/user.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/requirements.txt -------------------------------------------------------------------------------- /revision.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | alembic revision --autogenerate -m $@ 4 | -------------------------------------------------------------------------------- /static/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/static/share.png -------------------------------------------------------------------------------- /templates/base.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/templates/base.html -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/templates/index.html -------------------------------------------------------------------------------- /templates/kindle.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiajunhuang/pytemplate/HEAD/templates/kindle.html --------------------------------------------------------------------------------