A Python Framework for Getting Information Out Of iTunes Reporter API
Overview
The iTunes Reporter interface has a lot of very useful information in it, but unfortunately Apple only provides a Java Applet to access it, and no API.
This library lets you access that data as native Python objects so that you can display, analyze, or store it however you like.
Reporter takes your API information (either username and password or AccessKey), and then lets you request information from the API. In the case of a report, it downloads the TSV (Tab Separated Values) file, unzips it, and converts it into a native Python object.
In a coming version, you will also be able to use this via the command-line.
Basic Usage
To access the iTunes Reporter API, you must first instantiate the Reporter class, using either your username and password:
from reporter import Reporter rep = Reporter(user_id='user@mydomain.com', password='hunter2') print(rep.vendors) # ['80012345', '80054321']
Or your AccessKey (obtainable via the web interface, Apple’s own Reporter tool, or using the access_token property of an already instantiated Reporter object:
from reporter import Reporter rep = Reporter(access_token='29c656f3-2dcf-1234-5678-123456789abc') print(rep.vendors) # ['80012345', '80054321']
In the case of using your user_id and password, at the time of your first request, Reporter will fetch your AccessKey and use it for that request and all subsequent ones.
Metadata
Release files for pytunes-reporter 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytunes_reporter-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for pytunes_reporter-0.3.2-py3-none-any.whl |
Release files / pytunes_reporter-0.3.2-py3-none-any.whl
| Download URL | pytunes_reporter-0.3.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e888f4cfb70ccd098c450ecbc0c94f54b0ccfea45d13f299f0d0a9d570aaffd7
|
|
BLAKE2b-256 checksum How to use checksums |
5218cf79d3d3f01dacc9f68a3f64d0db39d8e1487909856b5b26188174b4d632
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|
Security for pytunes-reporter 0.3.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.