Use Components within an existing project
note
This guide shows how to add Components to an existing Dagster project without fully migrating to the Components architecture. If you want to fully migrate your project to be Components-compatible, see Converting an existing project.
Sometimes you want to use Components in your existing Dagster project without fully migrating to the Components architecture. This is useful when you want to leverage the power of Components for specific functionality while keeping your existing project structure intact, or for testing out Components in a project before committing to adjusting the project structure.
Example project structure
Let's walk through an example with an existing project that has the following structure:
tree
.
├── my_existing_project
│ ├── __init__.py
│ ├── analytics
│ │ ├── __init__.py
│ │ ├── assets.py
│ │ └── jobs.py
│ ├── definitions.py
│ └── elt
│ ├── __init__.py