Skip to main content

wkweb -- A Python Devkit For Web Development, Based On Flask

Install

pip3 install wkweb

Usage

from web import Appication,NestableBlueprint
app=Appication(__name__)
@app.route('/')
def home():
    return 'Hello, World!'
app.run() # visit http://localhost:5000 in your browser
  • NestableBlueprint
from web import Appication,NestableBlueprint
app=Appication(__name__)
@app.route('/')
def home():
    return 'Hello, World!'

bpa=NestableBlueprint('a',__name__,static_map={'/':'./'})
bpb=NestableBlueprint('b',__name__,static_map={'/b':'./data'})
bpa.register_blueprint(bpb,url_prefix='/b')
app.register_blueprint(bpa,url_prefix='/a')
app.run() 
# visit in your browser:
# http://localhost:5000/ 
# http://localhost:5000/a 
# http://localhost:5000/a/b 

Release files for wkweb 0.0.0.8

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

Source distribution (sdist)

Source distribution for wkweb 0.0.0.8
File Size Uploaded
wkweb-0.0.0.8.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wkweb 0.0.0.8
File Interpreter ABI Platform
wkweb-0.0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / wkweb-0.0.0.8.tar.gz

Download URL wkweb-0.0.0.8.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
70c91dfaf9f8c6b8c0560f1545ee4921e5238b260da7c7826d6ebd02bf720cc0
BLAKE2b-256 checksum
How to use checksums
167306691cdcbad03a1946e5a5a6e933b68e4d60407a5760d0f888f674027edb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.6

Release files / wkweb-0.0.0.8-py3-none-any.whl

Download URL wkweb-0.0.0.8-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c37041eb81f6f469f7c1fbaec5bc60fc61fb3097ca6265cfe52b60d7fd4da458
BLAKE2b-256 checksum
How to use checksums
1118cb2e991d561defb5daab307730c688833a008ec91b7537a19e15d236f865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.0.8 This release

2 release files

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