A tiny WSGI web framework.
- router
- orm
- request and response
- cookies and session
- template engine
- wsgi server
pip install bustard
pip install psycopg2 # if you need orm feature
from bustard.app import Bustard
app = Bustard()
@app.route('/')
def helloword(request):
return 'hello world'
if __name__ == '__main__':
app.run()
Just save it as hello.py and run it :
$ python hello.py
WSGIServer: Serving HTTP on ('127.0.0.1', 5000) ...
Now visit http://localhost:5000, and you should see hello world
.