✔ gzip compression (flask-compress)
✔ jinja2 caching
✔ py3.6+ f-strings bench
✔ mysql high concurrency bench
✔ ujson ultra fast json bench
flask, flask-compress, pymysql, passlib, ujson, argon2_cffi (encryption backend)
-
Install Python 3.6+ https://www.python.org/
-
Install MySQL Server https://www.apachefriends.org/index.html
-
Configure
config.json
-
Import
mysqldb.sql
into your database. (default user included tr4-admin:password)
Run the command below to install required modules. (pip or pip3)
$ pip install -r requirements.txt
Q: How do i know what python verison pip is using?
$ pip -V
Trinity was built with compatibility in mind for multiple setups.
$ python local_server.py
Recommended way (docs: gunicorn docs apache/nginx+gunicorn docs)
$ gunicorn --workers=4 app:app
- See
passenger_wsgi.py
(http://griimnak.me/trinity runs on passenger through cpanel)
$ pip install waitress
$ waitress-serve --listen=127.0.0.1:80 -w 4 app:app