-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it easier to use Kedro as a library #3029
Comments
Feedback from the internal session:To use the
|
Update: #2967 has been discarded |
Feedback from the external session:To use the
|
Summary:
|
Introduction
To use Kedro as a library and specifically the
DataCatalog
andOmegaConfigLoader
(or any config loader for that matter) a user needs to have significant knowledge and understanding of Kedro as a Framework.These two core components of Kedro contain assumptions that hold when they're used within the Framework workflow, e.g. when using Kedro through the CLI or
KedroSession
. However, these components have a use case outside of the Framework as well and could in theory be used as just a data catalog to easily load and save your data and as a configuration loader that loads anyyml
type configuration. In practice, using these components has proven to be difficult if the user doesn't know the Framework intimately.Background
For more detailed background see:
Proposals
To use the
DataCatalog
independently of the framework:Add argument to provide data source to
DataCatalog
#2965To use the
OmegaConfigLoader
independently of the framework:Remove the environment default for the
OmegaConfigLoader
#2971Currently, unless you have a
base
andlocal
environment you are required to provide abase_env
anddefault_run_env
to your configuration loader. We propose to remove that assumption and set bothbase_env
anddefault_run_env
to be inside the specifiedconf_source
(conf by default).From using just the
OmegaConfigLoader
to more of the Kedro Framework:Opt-out of using environments.
By default the framework will assume you have a "base" and "local" environment. This is set in
settings.py
and you will have to change it if you don't want to use these environments:Default settings
How to change the settings to not use environments/different environments
The text was updated successfully, but these errors were encountered: