Yeoman generator that scaffolds Superset visualization plugins and packages with proper structure and boilerplate code
63
Create a utility that generates a summary report for dashboards in a Superset instance. The utility should retrieve dashboard information, analyze their structure, and export the data to a JSON file.
The utility should connect to a Superset instance and retrieve a list of all dashboards. For each dashboard, it should collect:
The utility should export the collected dashboard information to a JSON file named dashboard_report.json. The JSON file should contain an array of dashboard objects with the following structure:
[
{
"title": "Sales Dashboard",
"chart_count": 5,
"owner": "admin",
"created_on": "2024-01-15T10:30:00",
"published": true
}
]@generates
def get_dashboard_list(base_url: str, username: str, password: str) -> list:
"""
Retrieves all dashboards from a Superset instance.
Args:
base_url: The base URL of the Superset instance (e.g., 'http://localhost:8088')
username: Username for authentication
password: Password for authentication
Returns:
A list of dictionaries containing dashboard information
"""
pass
def export_to_json(dashboards: list, output_file: str) -> None:
"""
Exports dashboard data to a JSON file.
Args:
dashboards: List of dashboard dictionaries
output_file: Path to the output JSON file
"""
passProvides dashboard management and REST API access for programmatic operations.
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