Dagster Shared Utilities
dagster-shared is an internal utility library providing common code, constants, and data structures shared between the core `dagster` package and other `dagster-` prefixed libraries (e.g., `dagster-dg-core`). It is not intended for direct use by end-users. The current version is 1.12.22, and it typically releases weekly or bi-weekly, synchronized with `dagster` core releases.
Warnings
- gotcha Direct imports from `dagster_shared` are generally discouraged. This library provides internal utilities and its API is not considered stable for public consumption. Symbols you might expect to find here are usually re-exported through the main `dagster` package.
- breaking As an internal library, `dagster-shared` does not guarantee API stability for direct users. Breaking changes may occur without specific deprecation cycles or warnings in minor releases if you are importing directly from it.
Install
-
pip install dagster-shared
Imports
- AnyDagsterSymbol
from dagster import AnyDagsterSymbol
Quickstart
from dagster import Definitions, asset
@asset
def my_first_asset():
return 123
defs = Definitions(assets=[my_first_asset])
# To run this, you would typically use the `dagster` CLI, e.g., `dagster dev`
# and load the Definitions from a Python file or module.
# dagster-shared itself does not have a direct user-facing quickstart as it's an internal utility.