Skip to main content

Minimalist Python web framework

Project description

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.

Links

License

MIT License.

Contact Me

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

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

drakken-3.1.0.tar.gz (25.5 kB view hashes)

Uploaded Source

Built Distribution

drakken-3.1.0-py3-none-any.whl (20.1 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