import view
from view.components import *
app = view.new_app()
@app.get("/")
async def index():
return h1("Hello, view.py!")
app.run()
Do you have too much free time?
If so, helping improve view.py is a great way to spend some of it. Take a look here if you're interested.
view.py is currently in a high alpha state, and many new features are on the way, such as:
<h1>"Hello, world"</h1>
)$ python3 -m pip install -U view.py
> py -m pip install -U view.py
$ git clone https://github.com/ZeroIntensity/view.py && cd view.py
$ pip install .
Now, type view
or python3 -m view
(py -m view
on Windows) to make sure everything is working:
$ view
Welcome to view.py!
Docs: https://view.zintensity.dev
GitHub: https://github.com/ZeroIntensity/view.py
Note: The remainder of this documentation will assume Python modules are on PATH and view.py may be executed with the raw view
command.