|
|
|
|
@ -14,7 +14,7 @@ A best-practice setup includes initialising git and creating a virtual environme
|
|
|
|
|
|
|
|
|
|
## Getting started
|
|
|
|
|
|
|
|
|
|
- Install the virtual environment : `python3 -m venv .venv`
|
|
|
|
|
- Install a virtual environment : `python -m venv .venv`
|
|
|
|
|
- Enable the virtual environment : `source .venv/bin/activate`
|
|
|
|
|
- install kedro `pip install kedro`
|
|
|
|
|
- Install the packages and libraries `pip install -r src/requirements.txt`
|
|
|
|
|
@ -60,30 +60,3 @@ To install them, run: `pip install -r src/requirements.txt`
|
|
|
|
|
You need to reload Kedro variables by calling `%reload_kedro` in your notebook and re-run the code snippet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Par rapport aux bonnes pratiques kedro
|
|
|
|
|
------------------------------------------
|
|
|
|
|
|
|
|
|
|
Dans `actes-princiers/.gitignore`,
|
|
|
|
|
- les datas sont mises dans le dépôt git
|
|
|
|
|
- le datacatalog en local est placé dans le dépôt git
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# ignore all local configuration
|
|
|
|
|
# conf/local/**
|
|
|
|
|
# ignore everything in the following folders
|
|
|
|
|
# data/**
|
|
|
|
|
|
|
|
|
|
## make a package for deployment
|
|
|
|
|
|
|
|
|
|
[package based deployment](https://docs.kedro.org/en/stable/deployment/single_machine.html#package-based)
|
|
|
|
|
|
|
|
|
|
If you prefer not to use containerisation, you can instead package your Kedro project using kedro package.
|
|
|
|
|
|
|
|
|
|
Run the following in your project’s root directory:
|
|
|
|
|
|
|
|
|
|
kedro package
|
|
|
|
|
|
|
|
|
|
Kedro builds the package into the dist/ folder of your project, and creates a .whl file, which is a Python packaging format for binary distribution.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|