Python module for accessing Airtable (largely based on the original airtable-python-wrapper).
Project description
Python Airtable
This is a Python module for accessing Airtable largely based on the original airtable-python-wrapper by Gui Talarico with some modifications.
Installing
pip install python-airtable
Documentation
Thee original full documentation is available here.
Usage Example
from airtable import Airtable
# We updated the signature of `Airtable` class to support `airtable://` scheme URLs along with `view` and `sort` supported within the URLs.
airtable = Airtable('airtable://app1234567890/table_name?view=My%20View&sort=ID')
for record_id, fields in airtable.iter_records():
print(f'Record ID: {record_id}, Fields: {fields}')
# Now you can get all the Airtable records as a big dictionary with record ID as keys
airtable.get_all_as_dict()
airtable.insert({'Name': 'Brian'})
# We added `batch_insert` and support generators for the records arguments; chunking of records to 10 each is done automatically.
airtable.batch_insert([record1, record2, ...])
airtable.batch_update([(id1, record1), (id2, record2), ...)) # same for batch_update
airtable.search('Name', 'Tom')
airtable.update_by_field('Name', 'Tom', {'Phone': '1234-4445'})
airtable.delete_by_field('Name', 'Tom')
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
python-airtable-0.5.tar.gz
(14.1 kB
view details)
Built Distribution
File details
Details for the file python-airtable-0.5.tar.gz
.
File metadata
- Download URL: python-airtable-0.5.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba4d65e66ed90a5974d1638d49083b06b4ce66e67e45dd70446413836beb9c6 |
|
MD5 | 372f2b957259672d57b7401c6431c9c9 |
|
BLAKE2b-256 | c7f989cc4a0b4c514f1b721c320caa1f9f7fdb8732abc6c981776bf737931cfb |
File details
Details for the file python_airtable-0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: python_airtable-0.5-py2.py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df79cd334af101c2a62a4b6bf0eeacdf72c3fbf088e07e1037c76c7a21ae795c |
|
MD5 | fd1bdf41fb02a01d2b1c531e21f302a9 |
|
BLAKE2b-256 | f30f42db04be46b7b85a4e7ab74b4569499ea233cac539749ad5eb60b838fba8 |