Skip to content

A simple CLI command that initialises a Kedro project from an existing Python package

License

Notifications You must be signed in to change notification settings

astrojuanlu/kedro-init

kedro-init

Documentation Status Code style: ruff-format PyPI

A simple CLI command that initialises a Kedro project from an existing Python package

Installation and usage

To use, run

$ uvx kedro-init .

Or, alternatively,

$ pipx run kedro-init .

For example, from a Poetry package:

(.venv) $ poetry new --src test-project && cd test-project
(.venv) $ kedro-init .
[00:19:38] Looking for existing package directories                             cli.py:25
[00:19:45] Initialising config directories                                      cli.py:25
           Creating modules                                                     cli.py:25
           🔶 Kedro project successfully initialised!                           cli.py:26

And with a uv package:

$ mkdir test-project && cd test-project && uv init
Initialized project `test-project`
$ uvx kedro-init .
[09:06:24] Looking for existing package directories                      cli.py:25
[09:06:25] Initialising config directories                               cli.py:25
           Creating modules                                              cli.py:25
           🔶 Kedro project successfully initialised!                    cli.py:26

Development

To run style checks:

(.venv) $ pip install tox
(.venv) $ tox

About

A simple CLI command that initialises a Kedro project from an existing Python package

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages