Skip to main content

A simple web framework built for learning purpose.

Project description

sixi-web CI

A simple web framework built for learning purpose.


pip install sixi-web


  1. Import the Sixi web api instance to route. If you’ve used Flask before, you'll find it easy.

    from sixi_web import API, Middleware
    app = API(templates_dir="templates", static_dir="static")
    def index(req, resp):
        resp.text = "Hello world"
    def about(req, resp):
        resp.text = "A vegetable dog passing by."
    def hello(req, resp, name):
        resp.text = f"Hello, {name}"
    def add(req, resp, a, b):
        result = int(a) + int(b)
        resp.text = f"{a} + {b} = {result}"
    class TodoResource:
        def get(self, req, resp):
            resp.text = "Get a task"
        def post(self, req, resp):
            resp.text = "Create a task"
    def html(req, resp):
        resp.html = app.template("index.html", context=dict(title="hi", name="kada"))
    def text(req, resp):
        resp.text = "This is plain text"
    def json(req, resp):
        resp.json = dict(content="this is json")
    def attributeerror_handler(req, resp, e):
        resp.text = f"I got it, {e}"
    class PrintingMiddleware(Middleware):
        def process_request(self, req):
            print(f"request: {req}\n\n")
        def process_response(self, req, resp):
            print(f"response: {resp}\n\n")
  2. Run with any WSGI application server such as Gunicorn.

    gunicorn app:app


  • Request handler
  • Routing
  • Class based view
  • Unit tests
  • CI
  • Template support
  • Custom exception handler
  • Static files serving
  • Middleware
  • Custom response
  • Pypi
  • ORM
  • CD
  • Authentication
  • Demo app
  • Cli
  • Session and Cookies


Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request


Distributed under the MIT License. See LICENSE for more information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sixi-web-0.1.4.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

sixi_web-0.1.4-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page