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.5.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for airplanesdk-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b3af7930becd31ab6a221258332c1f2d827917f85822d4ced60d51e59687b0 |
|
MD5 | 3e45b779e479c79c4032ec240f3a1da0 |
|
BLAKE2b-256 | 02682d0b8f04d7a4aaae4a57987ee5340284e8279d1611d118ea0dac1c16f58d |