Skip to main content

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

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

Metadata

Release files for lweb 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lweb 0.1.10
File Size Uploaded Provenance Actions
lweb-0.1.10.tar.gz 21.9 kB Without provenance Details for lweb-0.1.10.tar.gz

Release files / lweb-0.1.10.tar.gz

Download URL lweb-0.1.10.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e484965407fb49dc836956320fa1bb4b9168217673347da7abcdb3e4300f7814
BLAKE2b-256 checksum
How to use checksums
094d2add68b9c8d0d1254aec00198db147dfb266be19e65eab95bb70aa9b045d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lweb 0.1.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page