Official command-line interface for building, bundling, and managing Apache Superset extensions
Project description
apache-superset-extensions-cli
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
- 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
# Generate initial folder structure and scaffold a new extension project
superset-extensions init <extension-name>
# Automatically rebuild extension as files change during development
superset-extensions dev
# Build extension assets for production
superset-extensions build
# Package extension into a distributable .supx file
superset-extensions bundle
๐ Extension Structure
The CLI generates extensions with the following structure:
extension_name/
โโโ extension.json # Extension configuration and metadata
โโโ frontend/ # Frontend code
โ โโโ src/ # TypeScript/React source files
โ โโโ webpack.config.js # Frontend build configuration
โ โโโ tsconfig.json # TypeScript configuration
โ โโโ package.json # Frontend dependencies
โโโ backend/ # Backend code
โ โโโ src/
โ โ โโโ dataset_references/ # Python package source
โ โโโ tests/ # Backend tests
โ โโโ pyproject.toml # Python package configuration
โ โโโ requirements.txt # Python dependencies
โโโ dist/ # Built extension files (generated)
โ โโโ manifest.json # Generated extension manifest
โ โโโ frontend/
โ โ โโโ dist/ # Built frontend assets
โ โ โโโ remoteEntry.*.js # Module federation entry
โ โ โโโ *.js # Additional frontend bundles
โ โโโ backend/
โ โโโ dataset_references/ # Built backend package
โ โโโ __init__.py
โ โโโ api.py
โ โโโ entrypoint.py
โโโ dataset_references-1.0.0.supx # Packaged extension file (generated)
โโโ README.md # Extension documentation
๐ค Contributing
We welcome contributions! Please see the Contributing Guide for details.
๐ License
Licensed under the Apache License, Version 2.0. See LICENSE for details.
๐ Links
Note: This package is currently in early development. APIs and commands may change before the 1.0.0 release. Please check the changelog for breaking changes between versions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apache_superset_extensions_cli-0.0.1rc2.tar.gz.
File metadata
- Download URL: apache_superset_extensions_cli-0.0.1rc2.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90a08994c79bee466833c6ff9b5e74a2402fe3f21be0a306e9b7b11db3386f5c
|
|
| MD5 |
ff6f2766fe5b96cd6223eff730e4307e
|
|
| BLAKE2b-256 |
353eda3da2119a0310dde06d69f95c6df4237219afb6673580ef38ff3bf2861a
|
File details
Details for the file apache_superset_extensions_cli-0.0.1rc2-py3-none-any.whl.
File metadata
- Download URL: apache_superset_extensions_cli-0.0.1rc2-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dccd1383cf28eaaac7ea4a34869ce69550e92983aadc8d6743642dcf4c384116
|
|
| MD5 |
f9b9ee075560de3cc6b54cc97ac95e6a
|
|
| BLAKE2b-256 |
ae57f3626135992e11694ee6ad7d2ab80ce46794689b0b4f056dcde071d5dbd9
|