A Python SDK for writing Airplane tasks
Project description
Airplane Python SDK
SDK for writing Airplane tasks in Python.
Getting started
pip install airplanesdk
Usage
To write a Python task in Airplane, create a .py
file and export a function like so:
import airplane
def main(params):
return f"Hello, {params['name']}"
You can configure the parameters that your task will receive in the Airplane UI. They'll be passed through the params
argument to your function as a dictionary keyed by the slugs you see in the UI.
To execute your task, first install the Airplane CLI.
Once installed, execute your task locally:
airplane dev ./path/to/file.py -- --name=World
If that looks good, deploy your task to Airplane and give it a run in the UI!
airplane deploy ./path/to/file.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
airplanesdk-0.3.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for airplanesdk-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c244a0fa1e49066cfe0858ef7a3ff4059d0826d65f99cdd67b6a6c706c33fe10 |
|
MD5 | 209661b4cdba0eea32f3bb654db0a160 |
|
BLAKE2b-256 | d357336362d14a50588fddf8f67e51e915846b550fdaf25197ab620df64ecc1e |