python wrapper for using the amplitude analytics and taxonomy APIs
Project description
Amplitude analytics
This is a wrapper for Amplitude APIs. You can use it to query and export data from your account and use the taxonomy API.
Why use this package instead of other wrappers?
This package supports regions and so you can use it with Amplitude accounts in the EU and USA.
This package also supports using a proxy so you can keep your project API keys and API secrets confidential.
Get existing chart
Get data from EU account without proxy
from amplitude_data_wrapper import get_chart
r = get_chart(chart_id, api_key, api_secret, region=1)
r.status_code # 200
r.text # print data
Get data from US account without proxy
from amplitude_data_wrapper import get_chart
r = get_chart(chart_id, api_key, api_secret, region=2)
r.status_code # 200
r.text # print data
Get data from EU account With proxy
from amplitude_data_wrapper import get_chart
proxies = {"http": "http://myproxy.domain.org/path"}
r = get_chart(chart_id, api_key, api_secret, region=1, proxy=proxies)
r.status_code # 200
r.text # print data
Get a cohort
proxies = {"http": "http://myproxy.domain.org/path"}
file_path = "path-to/cohortdata.csv"
kull = get_cohort(
api_key,
api_secret,
cohort_id,
filename=file_path,
props=1,
region=1,
proxy=proxies,
)
Export project data
start = "20220601T00"
end = "20220601T01"
data = export_project_data(
start=start,
end=end,
api_key=api_key,
secret=api_secret,
filename="path-to/projectdata_eu.zip",
region=1,
)
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
Built Distribution
Close
Hashes for amplitude-data-wrapper-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3690b3853b5e97c83a2781a2ff1618e23648638c3f6a38d20e8e374f94732d3f |
|
MD5 | 259139fcfac8913102a594d9a8355e23 |
|
BLAKE2b-256 | 9394354ce17fd1bedcbc2154d20913a03bac8fe34a9f0974e67274fcf29cbeaf |
Close
Hashes for amplitude_data_wrapper-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0b45fc637d8348930f70e2e542312ba23b5eeddfafce96dce624122f065cc6 |
|
MD5 | 3cc99213e43d4a5e238ce2435f2d04ab |
|
BLAKE2b-256 | d87b6f84cbb3bc23d876c63939ed4780fb99d6b65156252f034d905df4c7e3fc |