Yeoman generator that scaffolds Superset visualization plugins and packages with proper structure and boilerplate code
63
Build a command-line tool that exports Superset dashboards with all their dependencies to a portable ZIP archive format.
Your tool should accept a dashboard ID and export the complete dashboard including all its dependencies (charts, datasets, and database connections) to a ZIP file. The export should use YAML format for metadata and preserve dependency relationships.
dashboard.yaml - Dashboard metadatacharts/*.yaml - One file per chartdatasets/*.yaml - One file per datasetdatabases/*.yaml - One file per database connectionmetadata.yaml - Export metadata including version and timestamp@generates
def export_dashboard(dashboard_id: int, output_path: str) -> None:
"""
Export a dashboard with all its dependencies to a ZIP archive.
Args:
dashboard_id: The ID of the dashboard to export
output_path: Path where the ZIP file should be created
Raises:
ValueError: If dashboard_id is invalid or dashboard doesn't exist
IOError: If output_path cannot be written to
"""
pass
def get_dashboard_dependencies(dashboard_id: int) -> dict:
"""
Retrieve all dependencies for a given dashboard.
Args:
dashboard_id: The ID of the dashboard
Returns:
A dictionary containing:
- 'charts': List of chart IDs
- 'datasets': List of dataset IDs
- 'databases': List of database IDs
Raises:
ValueError: If dashboard_id is invalid or dashboard doesn't exist
"""
passProvides the data models, export commands, and APIs for dashboard management.
Install with Tessl CLI
npx tessl i tessl/npm-superset-ui--generator-supersetdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10