Skip to main content

Flyte SDK for Python

Project description

# Flytekit

Library for easily authoring, testing, deploying, and interacting with Flyte tasks, workflows, and launch plans.

## Installation

Flytekit is designed for minimal footprint, and thus some features must be installed as extras.

### Base Installation

This is the lightest-weight SDK install. This installation includes everything you need to interact with Flyte.

Modules include: 1. The full Flyte IDL and an additional model layer for easier extension of the data model. 2. gRPC client for communicating with the platform. 3. Implementations for authoring and extending all Flyte entities (including tasks, workflows, and launch plans).

Tools include: 1. flyte-cli (Command-Line Interface for Interacting with the Flyte Platform) 2. pyflyte (Command-Line tool for easing the registration of Flyte entities)

`bash pip install flytekit `

### Spark Plugin Installation

If @spark_task is to be used, one should install the spark plugin.

`bash pip install flytekit[spark] `

### Schema Plugin Installation

If Types.Schema() is to be used for computations involving large dataframes, one should install the schema extension.

`bash pip install flytekit[schema] `

### Sidecar Plugin Installation

If @sidecar_task is to be used, one should install the sidecar plugin.

`bash pip install flytekit[sidecar] `

### Full Installation

To install all or multiple available plugins, one can specify them individually:

`bash pip install flytekit[sidecar,spark,schema] `

Or install them with the all directive.

`bash pip install flytekit[all] `

## Testing

Flytekit is Python 2.7+ compatible, so when feasible, it is recommended to test with both Python 2 and 3.

### Unit Testing

#### Setup (Do Once) `bash virtualenv ~/.virtualenvs/flytekit source ~/.virtualenvs/flytekit/bin/activate python -m pip install -r requirements.txt python -m pip install -U .[all] `

#### Execute `bash source ~/.virtualenvs/flytekit/bin/activate python -m pytest tests/flytekit/unit `

Project details


Release history Release notifications | RSS feed

This version

0.4.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flytekit-0.4.0.tar.gz (161.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flytekit-0.4.0-py3-none-any.whl (227.8 kB view details)

Uploaded Python 3

File details

Details for the file flytekit-0.4.0.tar.gz.

File metadata

  • Download URL: flytekit-0.4.0.tar.gz
  • Upload date:
  • Size: 161.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for flytekit-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e19a4825bfcf8866183fd4519b7ca6190571e3d4a76a51812a0b534719c3c857
MD5 39a5e73fc31b07cd94a6e91e879fef36
BLAKE2b-256 da680337786b4c6ddc737ee8eafb8194ba3bf83355f14c0e0cdc9af66b7b123d

See more details on using hashes here.

File details

Details for the file flytekit-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: flytekit-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 227.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for flytekit-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d8d58eab646bf970b9a44dd68709362e61f91567ad5912ec5ca3b01d8542075
MD5 68fad5b06e6aaa945ce77c331a53a460
BLAKE2b-256 8a285205f1f6a23c75f1e4566b213ac67457c809505644d012dd6ce50f5707e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page