Warning

View is still in alpha. To follow development progress, join the discord.

$ pip install -U view.py

Use view.py as a micro web framework

from view import new_app

app = new_app()

@app.get("/")
@app.query("greeting", str, default="Hello")
def index(greeting: str):
    return f"{greeting}, view.py!"

app.run()

...Or as fullstack

# routes/index.py
from view import get, query, template

@get()
@query("greeting", str, default="Hello")
async def index(greeting: str):
    # greeting is automatically accessible via the template
    return await template("index")

# Filesystem Based Routing

Affiliated With

Space Hosting

Lightning Fast

With the core built in pure C, View is extremely fast, outperforming some of the top web frameworks. It's PyAwaitable API makes view.py the first framework to implement ASGI in C, without the use of external transpilers.

Easy to Learn

Intuitive API's specifically designed for ease of use, as well as a rich documentation make view.py quick and easy to pick up. Get support from the developers themselves on the discord.

Customizable

Don't want to use View's built in API's? No problem. View includes native support for your favorite libraries, as well as built in object protocols for customizing view.py to your liking.

The View Philosophy


Batteries Detachable

adjective

/ˈbætəriz dɪˈtæʧəbəl/

We'll provide a way to do something right out of the box, but won't make you use it, and instead will natively support external libraries, meaning you don't have to relearn anything if you don't want to.

View Insiders


Level 1
Starter

$5/month

Your name added to a __sponsors__ variable.

Your name added to the README.

Access to a special channel in our discord.

Level 2
Standard

$10/month

Previous rewards.

Weekly Newsletter (accessible via the discord).

Priority on your view.py bug reports.

Level 3
Premium

$25/month

Previous rewards.

Priority on your view.py feature requests.

Project partnership.

Level 4
Commercial

$40/month

Previous rewards.

Advertise your company on our website.

Employee training on view.py from the author.