Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozillazg/bustard
A tiny WSGI web framework
https://github.com/mozillazg/bustard
orm python3 template-engine web-framework wsgi
Last synced: about 1 month ago
JSON representation
A tiny WSGI web framework
- Host: GitHub
- URL: https://github.com/mozillazg/bustard
- Owner: mozillazg
- License: mit
- Created: 2015-03-30T02:31:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-28T12:22:31.000Z (over 8 years ago)
- Last Synced: 2024-09-24T05:37:53.415Z (about 2 months ago)
- Topics: orm, python3, template-engine, web-framework, wsgi
- Language: Python
- Homepage:
- Size: 202 KB
- Stars: 45
- Watchers: 10
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
bustard
-----------.. image:: https://badges.gitter.im/mozillazg/bustard.svg
:alt: Join the chat at https://gitter.im/mozillazg/bustard
:target: https://gitter.im/mozillazg/bustard?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge|Build| |Coverage| |Pypi version|
A tiny WSGI web framework.
features
===============* router
* orm
* request and response
* cookies and session
* template engine
* wsgi serverinstall
=============::
pip install bustard
pip install psycopg2 # if you need orm featureGetting Started
===================::
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``.
.. |Build| image:: https://img.shields.io/travis/mozillazg/bustard/master.svg
:target: https://travis-ci.org/mozillazg/bustard
.. |Coverage| image:: https://img.shields.io/coveralls/mozillazg/bustard/master.svg
:target: https://coveralls.io/r/mozillazg/bustard
.. |PyPI version| image:: https://img.shields.io/pypi/v/bustard.svg
:target: https://pypi.python.org/pypi/bustard