Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Union Flyte Plugin

Proprietary extensions and features for Flyte, providing Union-specific functionality.

Installation

uv pip install flyteplugins-union

For development:

uv pip install -e .

Flyte compatibility

flyteplugins-union builds on flyte SDK internals that can change between flyte minor releases, so each release pins flyte to a single minor line. Install a flyteplugins-union release built for your flyte minor:

flyteplugins-union Requires flyte
0.5.0+ >=2.5.7,<2.6.0
0.4.3 >=2.5.0,<2.6.0
0.4.0 – 0.4.2 >=2.3.0,<2.5.0
0.3.0 >=2.1.0,<2.5.0

See COMPATIBILITY.md for the rationale and how the pin tracks new flyte releases.

Features

API Key Management

Create and manage API keys for headless authentication with Union.

Create an API Key

flyte create api-key admin --name my-api-key

This will create OAuth application credentials and output an API key that can be used for headless authentication.

Example output:

Client ID: serverless-1-myorg-my-api-key
The following API key will only be shown once. Be sure to keep it safe!
Configure your headless CLI by setting the following environment variable:

export FLYTE_API_KEY="<base64-encoded-credentials>"

Using the API Key

Set the generated API key as an environment variable:

export FLYTE_API_KEY="<your-api-key>"

Then use the Flyte CLI as normal - it will authenticate using the API key instead of prompting for interactive login.

Architecture

The Union SDK is structured as follows:

  • flyteplugins/union/internal/ - Proprietary protobuf definitions and generated code
  • flyteplugins/union/cli/ - CLI command plugins that extend the Flyte CLI
  • flyteplugins/union/utils/ - Shared utility functions
  • flyteplugins/union/remote/ - Union-specific remote objects

Plugin System

The SDK registers CLI plugins via entry points in pyproject.toml:

[project.entry-points."flyte.plugins.cli.commands"]
"create.api-key" = "flyteplugins.union.cli.api_key:create_api_key"
"delete.api-key" = "flyteplugins.union.cli.api_key:delete_api_key"
"get.api-key" = "flyteplugins.union.cli.api_key:get_api_key"

This makes Union commands available seamlessly through the Flyte CLI.

Dependencies

  • flyte - The Flyte SDK v2 (pinned to a single minor; see Flyte compatibility)
  • rich-click>=1.8.0 - For CLI formatting

Development

To add a new CLI plugin:

  1. Create a new file in src/flyteplugins/union/cli/
  2. Define your click commands
  3. Register the entry point in pyproject.toml
  4. Shared resources (protobufs, utilities) are available in flyteplugins.union.internal.* and flyteplugins.union.utils.*

Iterating

Commands to rebuild and reinstall this plugin (into the flyte-sdk venv presumably). From this folder:

python -m build --wheel

From your flyte-sdk venv:

uv pip install --prerelease=allow --force-reinstall --no-deps --no-index --find-links /Users/ytong/go/src/github.com/unionai/flyteplugins-union/dist flyteplugins-union

Download files

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

Source Distribution

flyteplugins_union-0.6.0a3.tar.gz (217.7 kB view details)

Uploaded Source

Built Distributions

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

flyteplugins_union-0.6.0a3-py3-none-win_amd64.whl (34.7 MB view details)

Uploaded Python 3Windows x86-64

flyteplugins_union-0.6.0a3-py3-none-macosx_11_0_arm64.whl (34.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

flyteplugins_union-0.6.0a3-py3-none-macosx_10_15_x86_64.whl (35.9 MB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file flyteplugins_union-0.6.0a3.tar.gz.

File metadata

  • Download URL: flyteplugins_union-0.6.0a3.tar.gz
  • Upload date:
  • Size: 217.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for flyteplugins_union-0.6.0a3.tar.gz
Algorithm Hash digest
SHA256 c906bab1f874da2e8b3293bd113c41ccc5406de050448926e4d04e7b56c1efcb
MD5 fa4420eb6c8463713e82edb5da4b99aa
BLAKE2b-256 afeb6a88a6dc52fa2e317aa9b23b58b1dac2a228aaaf9da5e53317e934faef09

See more details on using hashes here.

File details

Details for the file flyteplugins_union-0.6.0a3-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for flyteplugins_union-0.6.0a3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 96e929c22dbccb02bf43707feae1fb4cff7e4cde3d0a5760b00467ff0a76f3ba
MD5 67319cd297d4924c007025333764ab08
BLAKE2b-256 a85dbc3db567729e8a7fd95acb3fbce995cf352bd344c53320e1550aa282e7dd

See more details on using hashes here.

File details

Details for the file flyteplugins_union-0.6.0a3-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for flyteplugins_union-0.6.0a3-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3323f104baf399adebe1c6f2bd0e87345c2eeb76368b1f68f71909b948ac6ede
MD5 2e13febb4673e5bc8dfeccf8980a8b7b
BLAKE2b-256 70c68a46ab616f83c2469f4f1d6ec2601e737139850f7067d6a14fa7f2ea81ef

See more details on using hashes here.

File details

Details for the file flyteplugins_union-0.6.0a3-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for flyteplugins_union-0.6.0a3-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dad4e79e627a07bd0bac729ea8bcbea05bcbc056db39b159b5eb27eab91d7e2d
MD5 b71af03067cb48749ca87753283fdf94
BLAKE2b-256 70eb550c30de786ca22c8505d276cf6f07cbbc3af118f35a60a136b2e24b67de

See more details on using hashes here.

File details

Details for the file flyteplugins_union-0.6.0a3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for flyteplugins_union-0.6.0a3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e4854c9321fb23eaae18e4d680d693bf71566ddf5011758a5d5773c50ec01e6
MD5 82946995a4c95f6a2b9c948fac7f6fba
BLAKE2b-256 f6385aa864db0c9edba544169895ee888ff3535833a4962d64da98fd9c324c72

See more details on using hashes here.

File details

Details for the file flyteplugins_union-0.6.0a3-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for flyteplugins_union-0.6.0a3-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0d1afdddacd8d96ffef68047b9f171d3a7e211ce539742dff367a1a5812c0b4d
MD5 a57986705ca185fe2a570b95ccbcbdc9
BLAKE2b-256 ae56990de16ac0ec8099a29ea2d8fd31af15a113461fb63c8b8dad154606425f

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 Sentry Error logging StatusPage Status page