Metadata-Version: 2.1
Name: aioairtable
Version: 0.0.5
Summary: Asynchronous client library for Airtable API
Home-page: https://github.com/gleb-chipiga/aioairtable
Author: Gleb Chipiga
License: MIT
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Topic :: Internet
Classifier: Framework :: AsyncIO
Classifier: Topic :: Office/Business
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
Classifier: Topic :: Office/Business :: Groupware
Classifier: Topic :: Office/Business :: Scheduling
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
Requires-Dist: aiohttp
Requires-Dist: multidict
Requires-Dist: yarl
Requires-Dist: backoff
Requires-Dist: aiofreqlimit

About
=====
Asynchronous client library for `Airtable API <https://airtable.com/api>`_.

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

.. code-block:: bash

    pip install aioairtable

Using aioairtable
==================
Pass a value of any hashable type to `acquire` or do not specify any parameter:

.. code-block:: python

    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())

