Skip to main content

DLT (dlthub.com) source for airtable (airtable.com)

Project description

dlt-source-airtable

PyPI version

DLT source for airtable.

Currently loads the following data:

Table Contains
users Items of the users model that are users
service_accounts Items of the users model that are service accounts

Why are you not using the dlt-hub/verified-sources airtable source / Differences

The official verified source has a few drawbacks:

  • on usage of the verified source, a copy of the current state of the dlt-hub/verified-sources repository is copied into your project; Once you make changes to it, it effectively becomes a fork, making it hard to update after the fact.
  • This makes use of a preexisting client implementation which uses Pydantic models

Usage

Create a .dlt/secrets.toml with your API token:

airtable_token = "pat..."

You can create this token here or as a Service Admin Account (preferred).

The scopes needed are as follows:

  • enterprise.user:read
  • enterprise.account:read

and then run the default source with optional list references:

from dlt_source_airtable import source as airtable_source

pipeline = dlt.pipeline(
   pipeline_name="airtable_pipeline",
   destination="duckdb",
   dev_mode=True,
)
enterprise_id = "ent..."
airtable_data = airtable_source(enterprise_id)
pipeline.run(airtable_data)

How to get your enterprise ID

Navigate to your admin view and you will see

Account ID: ent...

in the sidebar and/or URL bar of your browser.

Development

This project is using devenv.

Commands:

Command What does it do?
format Formats & lints all code
sample-pipeline-run Runs the sample pipeline.
sample-pipeline-show Starts the streamlit-based dlt hub

Run the sample

AIRTABLE_TOKEN=[pat...] \
  sample-pipeline-run

alternatively you can also create a .dlt/secrets.toml (excluded from git) with the following content:

airtable_token = "pat..."

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

dlt_source_airtable-0.0.1.tar.gz (64.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dlt_source_airtable-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file dlt_source_airtable-0.0.1.tar.gz.

File metadata

  • Download URL: dlt_source_airtable-0.0.1.tar.gz
  • Upload date:
  • Size: 64.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dlt_source_airtable-0.0.1.tar.gz
Algorithm Hash digest
SHA256 15ec895ace137719cf7d6c74464af3ef026b8bbece56959c98661728cfafc0d3
MD5 2cf38bc38ca6e3c30eeebc63719fc8aa
BLAKE2b-256 d0012effe5737945a52674c98a958b48dd2b9122f22fcf82149992822f046bb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_airtable-0.0.1.tar.gz:

Publisher: test.yml on planet-a-ventures/dlt-source-airtable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dlt_source_airtable-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dlt_source_airtable-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd720c1c7a9aa81fe3f831b7592011b3414b3d576699976d05628a8897037fd6
MD5 2cec1fb63cd761edfd44595a10538e06
BLAKE2b-256 b9ff6d8d6c8158ec26d7e86f63042c83256a951c87bb893fca4a26f5207a3180

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_airtable-0.0.1-py3-none-any.whl:

Publisher: test.yml on planet-a-ventures/dlt-source-airtable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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