Metadata-Version: 2.1
Name: wkweb
Version: 0.0.0.7
Summary: A python devkit for web development, based on flask.
Home-page: https://github.com/Peiiii/wkweb
Author: Wang Pei
Author-email: 1535376447@qq.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown
Requires-Dist: flask
Requires-Dist: jinja2
Requires-Dist: fire
Requires-Dist: wpkit2

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

### Install
```cmd
pip3 install wkweb
```

### Usage
```python
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
```python
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 
```



