Skip to main content

A Python SDK for writing Airplane tasks

Project description

Airplane Python SDK PyPI PyPI - License Docs

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


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 details)

Uploaded Source

Built Distribution

airplanesdk-0.3.5-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file airplanesdk-0.3.5.tar.gz.

File metadata

  • Download URL: airplanesdk-0.3.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0

File hashes

Hashes for airplanesdk-0.3.5.tar.gz
Algorithm Hash digest
SHA256 4c805b5663b98d3f93fb43f66a64332b93cccde49b346a441c6fd359e9c4f441
MD5 705086a46fde0292efff4c343b2c6e35
BLAKE2b-256 ecc1df7f2bed3383b11c20a9b9934fd39557d953dcb0e3a256ecc441f2f1469a

See more details on using hashes here.

File details

Details for the file airplanesdk-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: airplanesdk-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0

File hashes

Hashes for airplanesdk-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e5b3af7930becd31ab6a221258332c1f2d827917f85822d4ced60d51e59687b0
MD5 3e45b779e479c79c4032ec240f3a1da0
BLAKE2b-256 02682d0b8f04d7a4aaae4a57987ee5340284e8279d1611d118ea0dac1c16f58d

See more details on using hashes here.

Supported by

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