Ivan
01/16/2025, 6:25 PMMarvin
01/16/2025, 6:25 PMpyproject.toml
: This file manages project dependencies and configurations such as testing and linting.
2. flows/
directory: This is where you store your Prefect flow files.
3. prefect.yaml
: A configuration file for storing deployment definitions.
4. src/prefect_pack/
package: This directory holds flow steps and utility functions.
5. Test Suite: A skeleton test suite using pytest
and fixtures for setting up a temporary Prefect environment.
For more details, you can refer to the Prefect Pack GitHub repository, which serves as a template for bootstrapping a new Prefect project.Ivan
01/16/2025, 6:26 PMNate
01/16/2025, 6:27 PMgood idea to describe integrations as classeswhat type of integrations do you mean? do you mean blocks?
Ivan
01/16/2025, 6:28 PMNate
01/16/2025, 6:30 PMsrc/prefect_pack
is the module where I would define your own reusable things
in the template as is, that's just one pydantic util and an extra step for my prefect.yaml
but you could easily do something like
» tree --gitignore src/your_module
src/your_module
├── __init__.py
├── _version.py
├── steps
│ └── your_custom_steps.py
└── gsheets.py
and then later after uv pip install .
from your_module.gsheets import YourClass
i.e. just like a normal python packageIvan
01/16/2025, 6:31 PM