DLT (dlthub.com) source for airtable (airtable.com)
Project description
dlt-source-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-sourcesrepository 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:readenterprise.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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15ec895ace137719cf7d6c74464af3ef026b8bbece56959c98661728cfafc0d3
|
|
| MD5 |
2cf38bc38ca6e3c30eeebc63719fc8aa
|
|
| BLAKE2b-256 |
d0012effe5737945a52674c98a958b48dd2b9122f22fcf82149992822f046bb3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dlt_source_airtable-0.0.1.tar.gz -
Subject digest:
15ec895ace137719cf7d6c74464af3ef026b8bbece56959c98661728cfafc0d3 - Sigstore transparency entry: 198049867
- Sigstore integration time:
-
Permalink:
planet-a-ventures/dlt-source-airtable@88adf3555d1a8e795a96de08879d607c5015d1d2 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/planet-a-ventures
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test.yml@88adf3555d1a8e795a96de08879d607c5015d1d2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dlt_source_airtable-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dlt_source_airtable-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd720c1c7a9aa81fe3f831b7592011b3414b3d576699976d05628a8897037fd6
|
|
| MD5 |
2cec1fb63cd761edfd44595a10538e06
|
|
| BLAKE2b-256 |
b9ff6d8d6c8158ec26d7e86f63042c83256a951c87bb893fca4a26f5207a3180
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dlt_source_airtable-0.0.1-py3-none-any.whl -
Subject digest:
dd720c1c7a9aa81fe3f831b7592011b3414b3d576699976d05628a8897037fd6 - Sigstore transparency entry: 198049873
- Sigstore integration time:
-
Permalink:
planet-a-ventures/dlt-source-airtable@88adf3555d1a8e795a96de08879d607c5015d1d2 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/planet-a-ventures
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test.yml@88adf3555d1a8e795a96de08879d607c5015d1d2 -
Trigger Event:
push
-
Statement type: