AirtablePy
Python API to interact with Airtable
Table of Contents
Installation
AirtablPy is available on pypi. Install using pip.
pip install AirtablePy
API Token
To use the Airtable API, you need a valid token.
You may setup an environment variable called AIRTABLE_API_KEY which this interface will use.
Simple Interface
from AirtablePy import AirtableAPI
from AirtablePy.utils import retrieve_keys
from AirtablePy.query import date_query
# Instantiate interface with valid token.
# If token is not specified, it will search for environment variable AIRTABLE_API_KEY
api = AirtableAPI(token="keyXXXXXXXXXXXXXX")
# Construct a valid url
base_id = "appXXXXXXXXXXXXXX"
table_name = "Example Table"
url = api.construct_url(base_id, table_name)
# Retrieve records from a table, with or without a query filter
records = api.get(url, query=date_query(column_name="date", start="20220401", end="20220415"))
# Upload new data entries
data = {"Column 1": [1, 2, 3], "Column 2": [4, 5, 6]}
response_upload = api.push(url=url, data=data)
# Collect a list of record id's from upload
record_ids = retrieve_keys(response_upload, "id")
# Update records with additional (or modified) data
data_update = {"Column 3": [7, 8, 9]} # data will be present in all three columns
response_update = api.update(url=url, data=data_update, record_id=record_ids)
# Replace existing records with different data
data_replace = {"Column 2": [10, 11, 12]} # only column 2 will have data
response_replace = api.replace(url=url, data=data_replace, record_id=record_ids)
# Delete existing Records
response_delete = api.delete(url=url, record_id=record_ids)
License
Metadata
Release files for AirtablePy 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| AirtablePy-0.1.3.tar.gz | 12.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| AirtablePy-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.6 kB
Release files / AirtablePy-0.1.3.tar.gz
| Download URL | AirtablePy-0.1.3.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00ae4891a16356284cd5d1380d0923dc91bf1f310a61c39fa83b2f55a59547da
|
|
BLAKE2b-256 checksum How to use checksums |
40189cc52e5c4d7456f6959618a03808da7ab9b18c703f7289f59a6d614d7f69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / AirtablePy-0.1.3-py3-none-any.whl
| Download URL | AirtablePy-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2d6a4e4ab2cc7fe7f93292b158ffd6e2dfc02643b8d849b4ce38861d2bc3380
|
|
BLAKE2b-256 checksum How to use checksums |
51d5040e7e019ee93ec5fc640573b9d31ed9582dd0b869b438afe10b40ced60a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for AirtablePy 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.