https://kedro.org/ logo
#questions
Title
# questions
g

Galen Seilis

01/12/2024, 6:45 PM
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

Ian Whalen

01/12/2024, 6:55 PM
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

Galen Seilis

01/13/2024, 2:44 AM
@Ian Whalen Thank you for the suggestion. This sounds promising! My team and I will consider it. 🙂
👍 1