Skip to content

Instantly share code, notes, and snippets.

View 2Wdavidcunliffe's full-sized avatar

David Cunliffe 2Wdavidcunliffe

View GitHub Profile
@2Wdavidcunliffe
2Wdavidcunliffe / airtable_helper.py
Created January 26, 2023 15:04 — forked from KalebNyquist/airtable_helper.py
Simple Download/Upload of Airtable Data into/from Python using Airtable API
import requests
import json
import pandas as pd
def airtable_download(table, params_dict={}, api_key=None, base_id=None, record_id=None):
"""Makes a request to Airtable for all records from a single table.
Returns data in dictionary format.
Keyword Arguments:
#cloud-config
# vim: syntax=yaml
#
# The current version of cloud-init in the Hypriot rpi-64 is 0.7.9
# When dealing with cloud-init, it is SUPER important to know the version
# I have wasted many hours creating servers to find out the module I was
# trying to use wasn't in the cloud-init version I had
# Documentation: http://cloudinit.readthedocs.io/en/0.7.9/index.html

Keybase proof

I hereby claim:

  • I am 2wdavidcunliffe on github.
  • I am dcunliffe (https://keybase.io/dcunliffe) on keybase.
  • I have a public key ASBP7qmNHZOUJU9v24Yl-ApkCJ1YlnsLsYrqGHPr8noBEQo

To claim this, I am signing this object: