Use @app.task to expose Python functions to the frontend.
@app.task
decorator. Davia will generate a UI based on the function’s inputs and output type.
app = Davia()
, you are actually creating a FastAPI application. This means you can use all FastAPI features and add your own endpoints alongside Davia tasks.
action_
for operations that take inputs, and display_
for those that simply show information. This makes your codebase easier to navigate and your UI more intuitive.