Export Airtable data to files on disk
Project description
airtable-export
Export Airtable data to files on disk
Installation
Install this tool using pip
:
$ pip install airtable-export
Usage
You will need to know the following information:
- Your Airtable base ID - this is a string starting with
app...
- Your Airtable API key - this is a string starting with
key...
- The names of each of the tables that you wish to export
You can export all of your data to a folder called export/
by running the following:
airtable-export export base_id table1 table2 --key=key
This example would create two files: export/table1.yml
and export/table2.yml
.
Rather than passing the API key using the --key
option you can set it as an environment variable called AIRTABLE_KEY
.
Export options
By default the tool exports your data as YAML.
You can also export as JSON or as newline delimited JSON using the --json
or --ndjson
options:
airtable-export export base_id table1 table2 --key=key --ndjson
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd airtable-export
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
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
Built Distribution
Hashes for airtable_export-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b521caf273b34f7592668bb140469d671fc47986469499555d9a9af05b15110f |
|
MD5 | db9c2799377b700c82d7755aaefcaa99 |
|
BLAKE2b-256 | a0fcf48b73e2141b8db9925734d275ae51c0ada3411ac7d62946fece183deb1e |