Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whiteclover/solo
Web framework Based Gevent & Webob & Routes
https://github.com/whiteclover/solo
Last synced: 3 months ago
JSON representation
Web framework Based Gevent & Webob & Routes
- Host: GitHub
- URL: https://github.com/whiteclover/solo
- Owner: whiteclover
- License: gpl-2.0
- Created: 2015-01-11T13:43:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-02T03:11:49.000Z (over 9 years ago)
- Last Synced: 2024-04-04T11:34:10.667Z (7 months ago)
- Language: Python
- Size: 360 KB
- Stars: 23
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - solo - Web framework Based Gevent & Webob & Routes (Python)
README
solo
#####Web Framework Based Gevent & Webob & Routes
Benchmark
===========ab -n10000 -c500 http://localhost:8080/
Run in
Python 2.7.9
Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
8GB RAM.. table::
============== ============ =========== ========== ==============
app server workers requets request/sec
============== ============ =========== ========== ==============
bottle gevent 500 10000 3623.53
falcon gevent 500 10000 4686.68
tornado tornado 500 10000 1315.57
flask gevent 500 10000 2594.68
django gevent 500 10000 2668.52
solo gevent 500 10000 3532.94
============== ============ =========== ========== ==============The Projects use solo
======================#. `Lilac (Distributed Scheduler Task System) `_
Hello
======.. code-block:: python
#!/usr/bin/env python
from solo.web.server import WebServer
from solo.web.app import Appclass HelloRoot(object):
def index(self):
return "Hello World!"def page(self, page):
return pageclass HelloApp(App):
def initialize(self):
ctl = HelloRoot()
route = self.route()
route.mapper.explicit = False
route.connect('index', '/', controller=ctl, action='index')
route.connect('page', '/page/:page', controller=ctl, action='page')if __name__ == '__main__':
app = HelloApp()
WebServer(('127.0.0.1', 8080), app, log=None).start().. note:: more examples see `Lilac (Distributed Scheduler Task System) `_ or `samples `_
Requirement
===========The modules are required to run solo as below:
#. gevent
#. webob
#. routes
#. makoHow to install
==============Firstly download or fetch it form github then run the command in shell:
.. code-block:: bash
cd solo # the path to the project
python setup.py installDevelopment
===========Fork or download it, then run:
.. code-block:: bash
cd solo # the path to the project
python setup.py developCompatibility
=============Built and tested under Python 2.7
LICENSE
=======Copyright (C) 2015 Thomas Huang
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 2 of the License.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .