Skip to content
嘞是web
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
draft
lessweb-stubs
lessweb
tests
.gitignore
README.md
pre_test.sh
setup.py

README.md

lessweb

「嘞是web」

"Django lets you write web apps in Django. Flask lets you write web apps in Flask. Lessweb lets you write web apps in Python."

Get lessweb

pip3 install lessweb

Hello World!

import lessweb
def hello():
    return 'Hello, world!'

app = lessweb.Application()
app.add_get_mapping('/', hello)
app.run()

文档:

http://lessweb.org

本地测试步骤:

virtualenv venv
bash pre_test.sh
. venv/bin/activate
nosetests -s tests/fast_test.py
nosetests -s tests/slow_test.py
nosetests -s tests/final_test.py
You can’t perform that action at this time.