apache-superset-core
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apache_superset_core-0.1.0.tar.gz | 21.8 kB | Without provenance | Details for apache_superset_core-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apache_superset_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for apache_superset_core-0.1.0-py3-none-any.whl |
Total release size: 59.3 kB
Release files / apache_superset_core-0.1.0.tar.gz
| Download URL | apache_superset_core-0.1.0.tar.gz |
|---|---|
| Size | 21.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72cddac557f212db30f718ef0741a59bc5f5b54559525f9a104d9c925aba18c1
|
|
BLAKE2b-256 checksum How to use checksums |
b1e0ffc6c91c31e4a47a61bed44bba0c80f1b02df0f6e7fddf9046329257667d
|
| 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.0-py3-none-any.whl
| Download URL | apache_superset_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ba2755792a07e6e060edfbf3341a941a27fb46a305008d45e5067b18f040706
|
|
BLAKE2b-256 checksum How to use checksums |
f2e21dfdc416124711d7dc4ece83d7c04af079466c481f4e078b5d6ff0e4f321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for apache-superset-core 0.1.0
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.