Connectors for interacting with popular API's used in marketing analytics using clean and concise Python code.
Project description
route1.io Python connectors
At route1.io we've written high level, easy-to-use abstractions in Python for connecting to common APIs used in marketing analytics. This repository contains our official code, documentation, and tutorials to help you on your way accessing what matters most: your data.
Table of Contents
Supported API's
Below is a list of API's currently supported by our custom connectors
- AWS' S3
- Google Sheets
- Google Analytics
- Google Ads
- DoubleClick Manager
- Search Ads 360
- Slack
- Apple Search Ads
- TikTok
- OneDrive
Installation
pip
Easily install to your environment from PyPI with
$ pip install route1io-connectors
Sample usage
All connectors provided by the package can be imported with Python's standard import syntax. See our wiki for tutorials regarding specific platform connectors!
from route1io_connectors import aws
# Credentials
# NOTE: Storing credentials in source isn't secure in practice.
# It's recommended you store them in a more secure place.
AWS_ACCESS_KEY_ID = "YOUR_AWS_ACCESS_KEY_ID"
AWS_SECRET_ACCESS_KEY = "YOUR_AWS_SECRET_ACCESS_KEY"
REGION_NAME = "YOUR_DEFAULT_REGION_NAME"
# Connect to S3
s3 = aws.connect_to_S3(
aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
region_name=REGION_NAME
)
# Download remote file from S3 bucket to local machine
aws.download_from_S3(
s3=s3,
bucket="your.s3.bucket",
key="local_file.csv"
local_fpath="tmp/local_file.csv",
)
Documentation
Documentation can be found in docs/_build/html or online at Read The Docs
License
This library operates under the GNU GPL v3.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file route1io-connectors-0.17.1.tar.gz
.
File metadata
- Download URL: route1io-connectors-0.17.1.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df730cc48e23ffc4e7a85f436a43faea09c13de97dc852186ba0ffc0b43af9fb |
|
MD5 | 05d16761d13ea168295bb1c9ae557b09 |
|
BLAKE2b-256 | 0b9e6b736e89248c7ecda41cf88ea02612d53dc36b92e0b723b979a2fe943039 |