Python module for accessing Airtable (largely based on the original airtable-python-wrapper).
Reason this release was yanked:
Critical bug in batch_update found
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.2.tar.gz
(14.3 kB
view hashes)
Built Distribution
Close
Hashes for python_airtable-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c58cdfc5e7c9c52f6b278bffbf0192e3be3f54d559e6d128722ac773c05665 |
|
MD5 | 7e085e851f2e38d25eeabf1da8396416 |
|
BLAKE2b-256 | 1a8be91a2398343669eb5ddfd2afaf867c40b1558eaf2ccc23cbb0bcf15c6c57 |