Back to Integrations
Vadyl + Python
A language that lets you work quickly. Integrate Vadyl with Django, Flask, or FastAPI.
pip install vadyl
AsyncIO Support
Type Hints
Pandas Integration
FastAPI Helpers
Implementation Guide
1
Initialize Client
Connect to Vadyl in your Python application.
from vadyl import create_client
import os
url = os.environ.get("VADYL_URL")
key = os.environ.get("VADYL_KEY")
vadyl = create_client(url, key)2
FastAPI Dependency
Inject the Vadyl client into your routes.
from fastapi import FastAPI, Depends
app = FastAPI()
@app.get("/items/")
async def read_items(client = Depends(get_vadyl_client)):
response = client.table("items").select("*").execute()
return response.data