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):
    resource_name = "dataset_references"

    @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.

Metadata

Release files for apache-superset-core 0.1.0rc1

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.0rc1
File Size Uploaded Provenance Actions
apache_superset_core-0.1.0rc1.tar.gz 26.6 kB Without provenance Details for apache_superset_core-0.1.0rc1.tar.gz

Built distribution (wheel)

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

Total release size: 67.5 kB

Release files / apache_superset_core-0.1.0rc1.tar.gz

Download URL apache_superset_core-0.1.0rc1.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
816e7bacf2a02c76a19509cf0fae8eaf17cd101060788552a60fba28d1dec3b6
BLAKE2b-256 checksum
How to use checksums
5693f77dabc275289bba12e3f444489efb95abfc72c38d1ee6ee0b8ad26f9fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

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

Download URL apache_superset_core-0.1.0rc1-py3-none-any.whl
Size 40.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e49bc2da62830d9d59f6220ca3697c5bd9a66e3f32781456a56109af41a24856
BLAKE2b-256 checksum
How to use checksums
0ef1f5c5a7bbc8879e78a9518cf96012c97b57fdb100525f675f877a98b9f47d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for apache-superset-core 0.1.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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