Skip to main content

Official command-line interface for building, bundling, and managing Apache Superset extensions

Project description

apache-superset-extensions-cli

PyPI version License Python 3.10+

Official command-line interface for building, bundling, and managing Apache Superset extensions. This CLI tool provides developers with everything needed to create, develop, and package extensions for the Superset ecosystem.

๐Ÿš€ Features

  • Extension Scaffolding - Generate initial folder structure and scaffold new extension projects
  • Validation - Validate extension structure and configuration before building
  • Development Server - Automatically rebuild extensions as files change during development
  • Build System - Build extension assets for production deployment
  • Bundle Packaging - Package extensions into distributable .supx files

๐Ÿ“ฆ Installation

pip install apache-superset-extensions-cli

๐Ÿ› ๏ธ Quick Start

Available Commands

# Scaffold a new extension project (interactive prompts, or pass options directly)
superset-extensions init [--publisher <publisher>] [--name <name>] [--display-name <name>]
                         [--version <version>] [--license <license>]
                         [--frontend/--no-frontend] [--backend/--no-backend]

# Validate extension structure and configuration
superset-extensions validate

# Build extension assets for production (runs validate first)
superset-extensions build

# Package extension into a distributable .supx file (runs build first)
superset-extensions bundle [--output/-o <path>]

# Automatically rebuild extension as files change during development
superset-extensions dev

๐Ÿ“‹ Extension Structure

The CLI scaffolds extensions with the following structure:

{publisher}.{name}/             # e.g., my-org.dashboard-widgets/
โ”œโ”€โ”€ extension.json              # Extension configuration and metadata
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ frontend/                   # Optional frontend code
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ””โ”€โ”€ index.tsx           # Frontend entry point
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ webpack.config.js
โ”‚   โ””โ”€โ”€ tsconfig.json
โ””โ”€โ”€ backend/                    # Optional backend code
    โ”œโ”€โ”€ src/
    โ”‚   โ””โ”€โ”€ {publisher}/        # e.g., my_org/
    โ”‚       โ””โ”€โ”€ {name}/         # e.g., dashboard_widgets/
    โ”‚           โ””โ”€โ”€ entrypoint.py
    โ””โ”€โ”€ pyproject.toml

๐Ÿ“„ License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

๐Ÿ”— Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apache_superset_extensions_cli-0.1.0rc3.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file apache_superset_extensions_cli-0.1.0rc3.tar.gz.

File metadata

File hashes

Hashes for apache_superset_extensions_cli-0.1.0rc3.tar.gz
Algorithm Hash digest
SHA256 9a5b7976acbbd7110ad8ed71ca469e62d9dc8f6166ef4b66eb8873fe5627f782
MD5 89c12703d1e75c73d2b43f398c742a61
BLAKE2b-256 02990ac6d241f6c68620576bb1adc4dc6a6d49ab55e86bb220ab256da59a2d44

See more details on using hashes here.

File details

Details for the file apache_superset_extensions_cli-0.1.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for apache_superset_extensions_cli-0.1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 756614d8d137fa619bd884c5f0835f859e696aeea01dbfdc08e98f4329defef3
MD5 7f5eb532ecb49c0e91cd9c1fee82f294
BLAKE2b-256 3aba2f3a55590704aecb8f5b9dcc4059f47ac5697d099687ca44d62552a4f4d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page