Andrew Stewart01/30/2023, 9:59 PM
## from <https://kedro.readthedocs.io/en/stable/kedro_project_setup/session.html> from kedro.framework.session import KedroSession from kedro.framework.startup import bootstrap_project from pathlib import Path bootstrap_project(Path.cwd()) with KedroSession.create() as session: session.run()
## from <https://kedro.readthedocs.io/en/stable/tutorial/package_a_project.html> from kedro_tutorial.__main__ import main main( ["--pipeline", "__default__"] ) # or simply main() if you don't want to provide any arguments
datajoely01/31/2023, 10:09 AM
Ivan Danov01/31/2023, 10:15 AM
and in a way is only meant to be used by Kedro’s CLI internally or only during development of your project. If you intent to run your project somewhere in production, the second one is the preferred method.
Andrew Stewart01/31/2023, 4:51 PM