Creating new component types
This feature is considered in a preview stage and is under active development. It can change significantly, or be removed completely. It is not considered ready for production use.
Creating and registering a component type
The components system makes it easy to create new component types that can be reused across your project.
Creating a library of components
dg is able to discover declared component types in packages installed in your Python environment. These may come from either your Dagster project or a third-party package. In either case, the mechanism for declaring component types is the same. A package must declare an entry point in the dagster-dg.library group in its package metadata. The entry point value is the name of a Python module containing component type definitions. By convention, this usually specifies the top-level module of a package, though any submodule may be specified. The entry point name is arbitrary and does not affect component type detection, but by convention should be set to the same string as the value (i.e. the module name):