A light-weight python web framework, shameless copy from bottle.
Project description
Lweb: A light-weight python web framework, shameless copy from bottle.
==========================================
.. image:: https://img.shields.io/pypi/v/lweb.svg
:target: https://pypi.python.org/pypi/lweb
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
--------
.. code:: python
# coding: utf-8
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 <https://github.com/zii/lweb/blob/master/example.py>`_
Features
--------
- Only pure WSGI app is provided
- Django style url router
- Concurrent safe
- Gevent friendly
==========================================
.. image:: https://img.shields.io/pypi/v/lweb.svg
:target: https://pypi.python.org/pypi/lweb
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
--------
.. code:: python
# coding: utf-8
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 <https://github.com/zii/lweb/blob/master/example.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.1.tar.gz
(22.1 kB
view details)
File details
Details for the file lweb-0.1.1.tar.gz
.
File metadata
- Download URL: lweb-0.1.1.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cb9de0f1c54a5cbcbb8cd8a6727902b97baa2051d175d919c864f263a8a3c40 |
|
MD5 | e126551ebcd7a80829ea5a2919a71cfb |
|
BLAKE2b-256 | 33e026435a8d192c225b9698440df518f4a473dd86cb6ebf403f5770c1ac8226 |