Coder Social home page Coder Social logo

griimnak / trinity-py Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 7.0 6.33 MB

A Flask-based CMS / web application for compatibility and simplicity.

Python 66.53% HTML 27.61% Batchfile 0.05% CSS 5.05% JavaScript 0.76%
passlib pymysql waitress python passenger argon2 cms gunicorn wsgi wsgi-framework wsgi-application

trinity-py's Introduction

Trinity-py

stability-experimental PEP8

WIP Youtube Demonstration

Recently rewritten for performance

✔ gzip compression (flask-compress)
✔ jinja2 caching
✔ py3.6+ f-strings bench
✔ mysql high concurrency bench
✔ ujson ultra fast json bench

Using least ammount of modules possible

flask, flask-compress, pymysql, passlib, ujson, argon2_cffi (encryption backend)

How to setup


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

How to run

Trinity was built with compatibility in mind for multiple setups.

Local / development environment

$ python local_server.py
Windows users can simply launch win_launch.bat

Gunicorn production environment

$ gunicorn --workers=4 app:app

Passenger production environment

  • See passenger_wsgi.py
(http://griimnak.me/trinity runs on passenger through cpanel)

Windows waitress production environment

Waitress is a gunicorn alternative for windows.
$ pip install waitress
$ waitress-serve --listen=127.0.0.1:80 -w 4 app:app



Screenshots

[4/10/2018] Alt Text

[4/5/2018] Alt Text

[4/4/2018] Alt Text

[4/2/2018] Alt Text

trinity-py's People

Contributors

griimnak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.