Asynchronous client library for Airtable API
Project description
Key Features
Asyncio and aiohttp based
All airtable REST API methods supported
API rate limit support
Fully type annotated (PEP 484)
Installation
aioairtable is available on PyPI. Use pip to install it:
pip install aioairtable
Requirements
Python >= 3.8
Using aioairtable
Pass a value of any hashable type to acquire or do not specify any parameter:
import asyncio
from aioairtable import Airtable, SortDirection
async def main():
airtable = Airtable(api_key='some_key')
base = airtable.base('base_id')
table = base.table('table_name')
records, offset = await table.list_records(
fields=('field_1', 'field_2'),
filter_by_formula='{field_3}',
max_records=100500,
page_size=3,
sort=(('field_1', SortDirection.ASC),
('field_2', SortDirection.DESC)),
view='table3',
offset='record033'
)
for record in records:
print(record)
record = await table.create_record({'field_1': 'value_1_new_001',
'field_2': 'value_2_new_001',
'field_3': 'value_3_new_001'})
await record.delete()
asyncio.run(main())
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
aioairtable-0.0.18.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for aioairtable-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48fcd2355bb58849a339c29b69531b3063d882c4af7a0b05c12cae0ce911d5dc |
|
MD5 | 63d3e9a1c2f836e940b1c8981d8f3b2c |
|
BLAKE2b-256 | 29f7f7f9b129d3750c0523b85e57ca3b1fb65549c2cb119d4ddf951e07355d84 |