easyAdobeAnalytics
This is an attempt at a usable python library to query report data from Adobe Analytics 1.4 API.
Installation
Install the package using:
pip install easyAdobeAnalytics
You can also find the package on PyPI.
How it works
- For authentication, you need to retrieve an access token from Adobe using client id and client secret.
- First step is generating a json structure required by Adobe for querying data.
- Depending upon if you need segments to be queried individually or not, generate the required number of report descriptions.
- Next, we submit these reports to Adobe Analytics to ready the reports for us.
- Once the report is queried, Adobe returns us a
report_idwhich we can use to track it's status. - If report is not ready yet, we keep checking until it's ready and data is available to be consumed.
- Once the report is ready (depending upon the size of data), we get the actual report data using the
report_id. - Finally we concatenate all the report data returned to create a single dataframe.
How to use
All the functionality is behind the query_and_retrieve function in the package. Define all the variables required and pass it on. Leave the variable as empty list for elements,metrics,segments in case you don't wish to provide one for a report.
Example:
from easyAdobeAnalytics import query_and_retrieve
def easy_example():
client_id = '<your-client-id>'
client_secret = '<your-client-secret'
company_id = 'company_id'
rsid = "report_suite_id"
elements = ['element_id_1','element_id_2']
metrics = ['metric_id_1','metric_id_2']
segments = ['segment_id_1','segment_id_2']
query_segments_individually = False # True in case you want each segment to be queried individually.
date_from = '2024-12-3'
date_to = '2024-12-17'
date_granularity = "Day" # Month, Year
report_data = query_and_retrieve(client_id,
client_secret,
elements,
metrics,segments,
rsid,date_from,
date_to,
date_granularity,
company_id,
query_segments_individually)
print(report_data.head())
if __name__ == '__main__':
easy_example()
Metadata
Release files for easyadobeanalytics 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| easyadobeanalytics-1.0.3.tar.gz | 9.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easyadobeanalytics-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 kB
Release files / easyadobeanalytics-1.0.3.tar.gz
| Download URL | easyadobeanalytics-1.0.3.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3cc7df1a1a80d6fc98471baab195246e319cdc68a511dc8b526c7f9aa570112
|
|
BLAKE2b-256 checksum How to use checksums |
efe7537111f13e6d6d9f7b0c02c854e74c721d4b1311764c536637f1142d5011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2024.
Transparency logRelease files / easyadobeanalytics-1.0.3-py3-none-any.whl
| Download URL | easyadobeanalytics-1.0.3-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47db89d81b352eeefa77cd840ac50786bb3176ca52dc8ea1a87cc9751b7a3084
|
|
BLAKE2b-256 checksum How to use checksums |
692e49fb0ab00f69b0778a3f81ce854e818d34adb3cfab5d9b22f0908b34d83b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2024.
Transparency logSecurity for easyadobeanalytics 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for easyadobeanalytics-1.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2024.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.