# Airtable Tasks


A collection of tasks for interacting with Airtable.

# WriteAirtableRow

class

prefect.tasks.airtable.airtable.WriteAirtableRow

(base_key=None, table_name=None, **kwargs)[source]

A task for writing a row to an Airtable table.

Note that all initialization settings can be provided / overwritten at runtime.

Args:

  • base_key (str): the Airtable base key
  • table_name (str): the table name
  • **kwargs (optional): additional kwargs to pass to the Task constructor

methods:                                                                                                                                                       

prefect.tasks.airtable.airtable.WriteAirtableRow.run

(data, base_key=None, table_name=None, api_key=None)[source]

Inserts data into an Airtable table

Args:

  • data (dict): the data to insert. This should be formatted as a dictionary mapping each column name to a value.
  • base_key (str): the Airtable base key
  • table_name (str): the table name
  • api_key (str): an Airtable API key. This can be provided via a Prefect Secret
Returns:
  • a dictionary containing information about the successful insert



# ReadAirtableRow

class

prefect.tasks.airtable.airtable.ReadAirtableRow

(base_key=None, table_name=None, **kwargs)[source]

A task for reading a row from an Airtable table.

Note that all initialization settings can be provided / overwritten at runtime.

Args:

  • base_key (str): the Airtable base key
  • table_name (str): the table name
  • **kwargs (optional): additional kwargs to pass to the Task constructor

methods:                                                                                                                                                       

prefect.tasks.airtable.airtable.ReadAirtableRow.run

(id, base_key=None, table_name=None, api_key=None)[source]

Reads a row an Airtable table by its id

Args:

  • id (str): the id of the row
  • base_key (str): the Airtable base key
  • table_name (str): the table name
  • api_key (str): an Airtable API key. This can be provided via a Prefect Secret
Returns:
  • a dictionary with the keys as the columns and the values as the row's values



This documentation was auto-generated from commit bd9182e
on July 31, 2024 at 18:02 UTC