Drakken

A minimalist WSGI web framework written in Python. Uses the SQLAlchemy database toolkit and the Mako template engine.

Install

pip3 install drakken

Quickstart

  1. Create a file demo.py and paste the following code into it:

     from drakken.core import Drakken
     app = Drakken()
    
     @app.route('/')
     def home(request, response):
         response.text = 'Hello from the HOME page'
    
     if __name__ == "__main__":
         app.runserver()
    
  2. Launch demo.py:

     python3 demo.py
    
  3. Visit the demo app’s home page. You should see a web page with the message Hello from the HOME page.

License

MIT License.

Contact Me

Send bug reports and patches to craig@seagrape.us.

Indices and tables