be5a7b582e
Añade módulo Python con funciones para la API de Metabase en dominio infra. Incluye cliente HTTP, auth, y CRUD de cards, dashboards y users. Proyecto gestionado con uv (pyproject.toml).
863 B
863 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| metabase_get_dashboard | function | py | infra | 1.0.0 | impure | def metabase_get_dashboard(client: MetabaseClient, dashboard_id: int) -> dict | Obtiene dashboard completo con dashcards (cards posicionadas), tabs y parametros. Endpoint: GET /api/dashboard/:id. |
|
false | error_go_core |
|
false | python/functions/metabase/dashboards.py |
Ejemplo
dash = metabase_get_dashboard(client, 1)
for dc in dash["dashcards"]:
print(f"Card {dc['card_id']} at ({dc['col']}, {dc['row']})")
Notas
Cada dashcard tiene: id, card_id, card, size_x, size_y, col, row, dashboard_tab_id, parameter_mappings.