If I were to have my Kedro ask for login info (e.g...
# questions
g
If I were to have my Kedro ask for login info (e.g. via
getpass
library) near the start of running the project, where should that go? Into a Kedro hook? If so, under what condition? Or something else?
i
Maybe the CLI hook? https://docs.kedro.org/en/latest/hooks/introduction.html#cli-hooks The specs are here: https://docs.kedro.org/en/latest/kedro.framework.cli.hooks.specs.CLICommandSpecs.html#kedro.framework.cli.hooks.spe[…]ommandSpecs.before_command_run You could: • Implement the
before_command_run
hook • Check if the command was
kedro run
• If so, prompt for the credentials • Add the credentials to the env / do whatever Maybe something like that?
g
@Ian Whalen Thank you for the suggestion. This sounds promising! My team and I will consider it. 🙂
👍 1