Metrics Grid
Backend Example
Return dataframe from python function.
# src/aws_cost.py
import morph
from morph import MorphGlobalContext
from morph_lib.database import execute_sql
@morph.func
def aws_cost(context: MorphGlobalContext):
data = execute_sql('select * from aws_cost', "DUCKDB")
return data
Installation
npx shadcn@latest add https://morph-componennts.vercel.app/r/metrics-grid.json