Easily generate connect cards from the comfort of your chair using Python
We're going to setup a really simple script that will generate a Connect Card URL for Google Analytics. Want to try other connector types? Check out the config examples here: https://fivetran.com/docs/rest-api/connectors/config
- You'll need a Fivetran account and your key and secret that you can find in settings. Find out more in our getting started guide.
- Make sure you have a working python environment.
- Setup a destination in Fivetran (ie Snowflake, BigQuery, etc): https://fivetran.com/docs/destinations and get your destination ID from the bottom of the destination page details in your dashboard.
- Make sure you have pip installed:
pip -V
- Make sure you have virtualenv installed:
virtualenv --v
(install withpip install virtualenv
)
- Install a virtual env for this project:
python3 -m venv .venv
- Activate the virtual env:
source .venv/bin/activate
- Install requirements:
pip install -r requirements.txt
Create a .env
file in the root of the project and add your key, secret, destination group id in the below format:
API_KEY=
API_SECRET=
GROUP_ID=
python create_cc.py