Skip to main content

A light-weight python web framework, shameless copy from bottle.

Project description

Lorm: 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

Lorm 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lweb, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size lweb-0.1.0.tar.gz (22.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page