Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

apache-superset-core

PyPI version License Python 3.10+

The official core package for building Apache Superset backend extensions and integrations. This package provides essential building blocks including base classes, API utilities, type definitions, and decorators for both the host application and extensions.

📦 Installation

pip install apache-superset-core

🏗️ Package Structure

src/superset_core/
├── common/
├── extensions/
├── mcp/
├── queries/
├── rest_api/
├── tasks/
└── __init__.py

🚀 Quick Start

Basic Extension API

from flask_appbuilder.api import expose, permission_name, protect, safe
from superset_core.rest_api.api import RestApi
from superset_core.rest_api.decorators import api


@api(id="dataset_references", name="Dataset References API")
class DatasetReferencesAPI(RestApi):

    @expose("/metadata", methods=("POST",))
    @protect()
    @safe
    @permission_name("read")
    def metadata(self) -> Response:
        # ... endpoint implementation

Background Tasks

from superset_core.tasks.decorators import task
from superset_core.tasks.types import TaskScope

@task(name="generate_report", scope=TaskScope.SHARED)
def generate_report(chart_id: int) -> None:
    # ... task implementation

MCP Tools

from superset_core.mcp.decorators import tool

@tool(name="my_tool", description="Custom business logic", tags=["extension"])
def my_extension_tool(param: str) -> dict:
    # ... tool implementation

MCP Prompts

from superset_core.mcp.decorators import prompt

@prompt(name="my_prompt", title="My Prompt", description="Interactive prompt", tags={"extension"})
async def my_prompt_handler(ctx: Context) -> str:
    # ... prompt implementation

📄 License

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

🔗 Links

Metadata

Release files for apache-superset-core 0.1.0rc3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apache-superset-core 0.1.0rc3
File Size Uploaded
apache_superset_core-0.1.0rc3.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apache-superset-core 0.1.0rc3
File Interpreter ABI Platform
apache_superset_core-0.1.0rc3-py3-none-any.whl Python 3 none any Details

Total release size: 59.3 kB

Release files / apache_superset_core-0.1.0rc3.tar.gz

Download URL apache_superset_core-0.1.0rc3.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a0c612c83078c51515242ede634c49b4fabed8a10863611f8f8d80a717fb845b
BLAKE2b-256 checksum
How to use checksums
172791ca0b7a4f3c2ecef550e8911e2617ae830a9e42cd3ee68062ef42eca927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / apache_superset_core-0.1.0rc3-py3-none-any.whl

Download URL apache_superset_core-0.1.0rc3-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a25b7d8445d71b53f393eb44b35839a5326ed232f8568e4f810781f208d3bc66
BLAKE2b-256 checksum
How to use checksums
1a8043c77b6a3a84870fc73d533253ac0dfc70bf6f4c5650dd7f576dcf7523f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page