fivetran-connorbrereton / fivetran-connect-card-script-python

Python implementation of generating a connect card using the Fivetran REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fivetran Connect Card Generation Script in Python

Easily generate connect cards from the comfort of your chair using Python

How this works

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

Prepare

Dev Environment

  • Make sure you have pip installed: pip -V
  • Make sure you have virtualenv installed: virtualenv --v (install with pip install virtualenv)

Install required packages

  • 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 .env file

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=

Run the script

python create_cc.py

Learn more about Connect Cards and Powered by Fivetran

About

Python implementation of generating a connect card using the Fivetran REST API


Languages

Language:Python 100.0%