A light-weight python web framework, shameless copy from bottle.
Project description
Lweb is a light-weight python wsgi framework, shameless copy from bottle. No builtin template engine. No builtin server, need thirdpart wsgi driver.
Installation
The last stable release is available on PyPI and can be installed with pip:
$ pip install lweb
Example
import lweb
def r_index():
return "hello!"
urls = [
('/', r_index),
]
app = lweb.Application()
app.add_urls(urls)
if __name__ == '__main__':
import bjoern
print 'Wsgi server start!'
bjoern.run(app, '0.0.0.0', 7000)
For more examples, see example.py and example_project <https://github.com/zii/lweb/blob/master/example_project.py>
Features
Only pure WSGI app is provided
Django style url router
Concurrent safe
Gevent friendly
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lweb-0.1.5.tar.gz
(22.2 kB
view details)
File details
Details for the file lweb-0.1.5.tar.gz
.
File metadata
- Download URL: lweb-0.1.5.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc7b763840793f2018b7f6dcfab834440657493c00fd0071ccb2c23d57702a4 |
|
MD5 | 23963311c5d896635cc1c0b7e69cb2b5 |
|
BLAKE2b-256 | 5301f3afda2cf361c0c63455531bd54377522dd8dcc2733822d57567c9faa492 |