Flyte Provider for Apache Airflow
This package provides an operator, a sensor, and a hook that integrates Flyte into Apache Airflow.
FlyteOperator is helpful to trigger a task/workflow in Flyte and FlyteSensor enables monitoring a Flyte execution status
for completion.
Installation
Prerequisites: An environment running apache-airflow.
pip install airflow-provider-flyte
Configuration
In the Airflow UI, configure a Connection for Flyte.
- Host (required): The FlyteAdmin host.
- Port (optional): The FlyteAdmin port.
- Login (optional):
client_id - Password (optional):
client_credentials_secret - Extra (optional): Specify the
extraparameter as JSON dictionary to provide additional parameters.project: The default project to connect to.domain: The default domain to connect to.insecure: Whether to use SSL or not.command: The command to execute to return a token using an external process.scopes: List of scopes to request.auth_mode: The OAuth mode to use. Defaults to pkce flow.env_prefix: Prefix that will be used to lookup for injected secrets at runtime.default_dir: Default directory that will be used to find secrets as individual files.file_prefix: Prefix for the file in thedefault_dir.statsd_host: The statsd host.statsd_port: The statsd port.statsd_disabled: Whether to send statsd or not.statsd_disabled_tags: Turn on to reduce cardinality.local_sandbox_path- S3 Config:
s3_enable_debugs3_endpoints3_retriess3_backoffs3_access_key_ids3_secret_access_key
- GCS Config:
gsutil_parallelism
Modules
Flyte Operator
The FlyteOperator requires a flyte_conn_id to fetch all the connection-related
parameters that are useful to instantiate FlyteRemote. Also, you must give a
launchplan_name to trigger a workflow, or task_name to trigger a task; you can give a
handful of other values that are optional, such as project, domain, max_parallelism,
raw_data_prefix, kubernetes_service_account, labels, annotations,
secrets, notifications, disable_notifications, oauth2_client, version, and inputs.
Import into your DAG via:
from flyte_provider.operators.flyte import FlyteOperator
Flyte Sensor
If you need to wait for an execution to complete, use FlyteSensor.
Monitoring with FlyteSensor allows you to trigger downstream processes only when the Flyte executions are complete.
Import into your DAG via:
from flyte_provider.sensors.flyte import FlyteSensor
Examples
See the examples directory for an example DAG.
Issues
Please file issues and open pull requests here. If you hit any roadblock, hit us up on Slack.
Metadata
Release files for airflow-provider-flyte 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| airflow-provider-flyte-0.0.5.tar.gz | 11.8 kB | Without provenance | Details for airflow-provider-flyte-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| airflow_provider_flyte-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for airflow_provider_flyte-0.0.5-py3-none-any.whl |
Total release size: 25.9 kB
Release files / airflow-provider-flyte-0.0.5.tar.gz
| Download URL | airflow-provider-flyte-0.0.5.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55aef77e54ef1f8d67d243efd1dab03f53f56dc37b406c8fe506b4635bc6918f
|
|
BLAKE2b-256 checksum How to use checksums |
dc50506547795c64e26c2acc85e82230453c181893f5b7f27a84043f62744544
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / airflow_provider_flyte-0.0.5-py3-none-any.whl
| Download URL | airflow_provider_flyte-0.0.5-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74d2a5c4a8c74438f16c1536a532cb8d1bacae9661c26a0e6da996e1f3540dba
|
|
BLAKE2b-256 checksum How to use checksums |
4d7dbe72368a5b5baf879e2c1d707fdb0bb8014200745ac61fdfa81531c62762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for airflow-provider-flyte 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.