THIS IS CURRENTLY IN BETA
web-fw
Hey Guys! Sushant Here,
So Do You Need A Fast, Lightweight And Reliable Web Framework for your Next WebApp?
Here Comes Black Blaze into play
Black Blaze-WEBfw is a minimalistic web framework for python.
Install Black Blaze-Webfw
sushant@H4CK3R:~$ python -m pip install BlackBlazeFwImport Black Blaze-Webfw:
from BlackBlazeFw import WebAppCreate An App:
app = webApp("__init__", "GUNICORN")Register URLs:
@app.catchURL('/hello') def hello(response): ...Handle Output: a. Output HTML:
@app.catchURL('/hello') def hello(response): response.text = "<b>Hello World</b>"
b. Set Status Code:
python
@app.catchURL('/hello')
def hello(response):
response.text = "<b>Not Found</b>"
response.status_code = 404
- Run The WebApp:
Create a new file named
app.pyAdd The Following Code:python from file import app app.run("appname")Change file To The Name Of The Filename And appname To The Name Of The App(here app) Run The File
Log in or sign up for Devpost to join the conversation.