resources for converting CalScape data for use in Airtable
-
fork / clone the repo
-
set up a virtual environment in the repo directory
python -m venv venv -
activate virtual env
Windows:
venv\Scripts\activate.batMac/ Linux:
source venv/bin/activate -
install dependencies from requirements.txt
python -m pip install -r requirements.txt
-
generate plant list on CalScape
-
export detailed plant list to Excel
must be "Detailed" version
don't modify this Excel file, script expects the raw export .xls from CalScape
-
in Airtable:
go to this link
in the upper right-hand corner, select
Use This Datachoose a workspace from your Airtable account, choose a base
select
Copy this data into a new table, which you can editKeep the field names and the values in the
nullrecord exactly the same -
on your machine:
open the
configfile in your favorite text editorenter the base key (starts with
appin the airtable URL)your api key (airtable.com -> Account -> API)
the name of the table that you set up (default is
CalScape Edited Export Template)save the config file
-
run the script
calscape_airtable.py --calscape_export /path/to/export.xls