Python Library for easily authoring, testing, deploying, and interacting with Flyte tasks, workflows, and launch plans. To understand more about flyte refer to,
Flytekit is designed for minimal footprint, and thus some features must be installed as extras.
This is the lightest-weight SDK install. This installation includes everything you need to interact with Flyte.
Modules include:
Tools include:
pip install flytekit
If @spark_task
is to be used, one should install the spark
plugin.
pip install flytekit[spark]
If Types.Schema()
is to be used for computations involving large dataframes, one should install the schema
extension.
pip install flytekit[schema]
If @sidecar_task
is to be used, one should install the sidecar
plugin.
pip install flytekit[sidecar]
If @pytorch_task
is to be used, one should install the pytorch
plugin.
pip install flytekit[pytorch]
To install all or multiple available plugins, one can specify them individually:
pip install flytekit[sidecar,spark,schema]
Or install them with the all
directive.
pip install flytekit[all]
Flytekit is Python 2.7+ compatible, so when feasible, it is recommended to test with both Python 2 and 3.
virtualenv ~/.virtualenvs/flytekit
source ~/.virtualenvs/flytekit/bin/activate
python -m pip install -r requirements.txt
python -m pip install -U .[all]
source ~/.virtualenvs/flytekit/bin/activate
python -m pytest tests/flytekit/unit
shellcheck **/*.sh