Skip to main content

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

Project description

https://img.shields.io/pypi/v/lweb.svg

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

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.

Source Distribution

lweb-0.1.9.tar.gz (21.8 kB view details)

Uploaded Source

File details

Details for the file lweb-0.1.9.tar.gz.

File metadata

  • Download URL: lweb-0.1.9.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lweb-0.1.9.tar.gz
Algorithm Hash digest
SHA256 43eb990428069c0f07a30f9141c5e715be1d1f81c210a9d80a1ad870d7abbb28
MD5 ce2aac1fa50bcd2f68ae5c60e2e134d9
BLAKE2b-256 bb74263c9a1f60b9000e955250b6be35f96d2ffd05173d2042efef1e568d33e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page