Client library for AppStore Connect Analytics API
Project description
Introduction
This is a Python library for the AppStore Analytics API and allows you to easily access the analytics data of your python apps.
Installation
pip install surquest-utils-appstoreconnect-analytics-api
Usage
import datetime as dt
from surquest.utils.appstoreconnect.analytics import (
Client as AppStoreConnectClient,
Analytics as AppStoreConnectAnalytics,
Formatter,
Frequency,
Measures,
Dimension,
)
# Create client
client = AppStoreConnectClient(
mayacinfo="ADD-YOUR-MYACINFO", # is a Cookie value from https://appstoreconnect.apple.com/
)
# Create analytics object
analytics = AppStoreConnectAnalytics(
client=client
)
# Get time series data
data = analytics.get_time_series(
app_ids=["ADD-YOUR-APP-ID"],
measure=Measures.INSTALLS,
start_date=dt.date(2021, 1, 1),
end_date=dt.date(2021, 1, 31),
grouping=Group.COUNTRY
frequency=Frequency.DAY,
)
print("YOUR DATA:", data)
Development
docker build `
--tag surquest/utils/appstoreconnect:dev `
--file package.base.dockerfile `
--target test .
docker run --rm -it `
-v "${pwd}:/opt/project" `
-w "/opt/project/test" `
-e "APPID={ADD-YOUR-APP-ID}" `
-e "MYACINFO={ADD-YOUR-MYACINFO}" `
surquest/utils/appstoreconnect:dev pytest
License
This project is licensed under the terms of the MIT 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surquest_utils_appstoreconnect_analytics_api-0.0.1rc1.tar.gz.
File metadata
- Download URL: surquest_utils_appstoreconnect_analytics_api-0.0.1rc1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afea865ed692df8179a289dfb812f405ef11021e34bce8ccb061704efd99ee1
|
|
| MD5 |
b1bebf76eac413e93213888501c28ce2
|
|
| BLAKE2b-256 |
1464dc1d84af4938a2db13b994b1b84ad714168f8e097a933763e8e76057a68b
|
File details
Details for the file surquest_utils_appstoreconnect_analytics_api-0.0.1rc1-py2.py3-none-any.whl.
File metadata
- Download URL: surquest_utils_appstoreconnect_analytics_api-0.0.1rc1-py2.py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a861175a77ad0f42f98a3eb2f3795e6f96188044d366e7dfe56619e584e7e6b3
|
|
| MD5 |
b07be766217ebe83ee93a5b6ceda0b43
|
|
| BLAKE2b-256 |
ff0b7acf6520fda510e91dd1f8bf8e2bdcdce72196d535ada4cdb54144284224
|