Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 1.24 KB

File metadata and controls

58 lines (47 loc) · 1.24 KB

THIS IS CURRENTLY IN BETA

app-fw

Hey Guys! Sushant Here,

So Do You Need A Fast, Lightweight And Reliable GUI Framework for your Next Desktop/App?

Here Comes Black Blaze into play

Black Blaze-WEBfw is a minimalistic web framework for python.

  1. Install Black Blaze-Webfw

    sushant@H4CK3R:~$ python -m pip install BlackBlazeFw
  2. Import Black Blaze-Webfw:

    from BlackBlazeFw import WebApp
  3. Create An App:

    app = webApp("__init__", "GUNICORN")
  4. Register URLs:

       @app.catchURL('/hello')
       def hello(response):
       ...
  5. Handle Output: a. Output HTML:

       @app.catchURL('/hello')
       def hello(response):
         response.text = "<b>Hello World</b>"

    b. Set Status Code:

       @app.catchURL('/hello')
       def hello(response):
         response.text = "<b>Not Found</b>"
         response.status_code = 404
  6. Run The WebApp: Create a new file named app.py Add The Following Code:

    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