Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Python Web Framework

License

NotificationsYou must be signed in to change notification settings

salamer/jolla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pic

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 clickread more

the Tutorial and documentation is中文版English edition

QUICKSTART

create aapp.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/<id>', data),    ]if __name__ == '__main__':    server = server.jolla_server(app)    server.run_server()

and then,run:

python app.py

and open thehttp://127.0.0.1:8000 on your browser

you will see the magic happen!

LICENSE

Copyright © 2016 by Aljun

Under Apache license :http://www.apache.org/licenses/


[8]ページ先頭

©2009-2025 Movatter.jp