Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salamer/jolla
Python Web Framework
https://github.com/salamer/jolla
async-python gevent jolla python webframework
Last synced: about 1 month ago
JSON representation
Python Web Framework
- Host: GitHub
- URL: https://github.com/salamer/jolla
- Owner: salamer
- License: apache-2.0
- Created: 2016-04-14T14:35:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-21T08:16:57.000Z (over 8 years ago)
- Last Synced: 2024-11-05T03:37:30.516Z (about 2 months ago)
- Topics: async-python, gevent, jolla, python, webframework
- Language: Python
- Homepage: http://salamer.github.io/jolla
- Size: 160 KB
- Stars: 130
- Watchers: 16
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![pic](https://github.com/salamer/jolla/blob/master/pic/JOLLA.png)
# Jolla
jolla is a pure API server framework,and it is based on the gevent.When I wrote Jolla,what I want to do is a high performance API server for you to simply obey its short rule,and get your calculation result fast be sent to browser or mobile for your service.so I made Jolla as simple as possible.
Hope you guys like it.
## INSTALL
```
pip install jolla
```## DOCUMENT
wanna know more,please click [read more](http://salamer.github.io/jolla)the Tutorial and documentation is [中文版](http://jolla.readthedocs.io/zh/latest/) [English edition](http://jolla-english.readthedocs.io/en/latest/)
## QUICKSTART
create a `app.py`,and write dowm:```
from jolla import server,render,render_jsondef index(request):
return render('index.html')def data(request):
data = {'data': request['id']}
return render_json(data)class app(server.WebApp):
urls = [
(r'/', index),
(r'/data/', data),
]if __name__ == '__main__':
server = server.jolla_server(app)
server.run_server()
```and then,run:
```
python app.py
```and open the [http://127.0.0.1:8000](http://127.0.0.1:8000) on your browser
you will see the magic happen!
## LICENSE
Copyright © 2016 by AljunUnder Apache license : [http://www.apache.org/licenses/](http://www.apache.org/licenses/)