Skip to main content

Asynchronous client library for Airtable API

Project description

About

Asynchronous client library for Airtable API.

Installation

aioairtable requires Python 3.8 or greater and is available on PyPI. Use pip to install it:

pip install aioairtable

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


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.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioairtable-0.0.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file aioairtable-0.0.2.tar.gz.

File metadata

  • Download URL: aioairtable-0.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for aioairtable-0.0.2.tar.gz
Algorithm Hash digest
SHA256 41a268a7a8e83e2c39882dccfe5dadfa1df99667104bd505be71a46717fa52d8
MD5 1ced7d782611a8f493b1f522a4344975
BLAKE2b-256 9235d6e265b9ac57b1c2e38810a31819f06d1cc977438b6908cf157bc42537f1

See more details on using hashes here.

File details

Details for the file aioairtable-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aioairtable-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for aioairtable-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8702bf355399a26c6520402ece9a5d44c9ced68c6eb6451dc6de14c3a62e05a5
MD5 7cdbc4d4897479c3ee0b9ad352f9f7ec
BLAKE2b-256 61a78194ea15de0601cdfe33bd7e7d1e8ae905062e4ed15a9e9438cc8d5882ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page