Library to interact with iTunes Reporter API
Project description
============
pyTunes Reporter
============
.. image:: https://badge.fury.io/py/pytunes-reporter.svg
:target: https://badge.fury.io/py/pytunes-reporter
.. image:: https://travis-ci.org/gifbitjapan/pytunes-reporter.svg?branch=master
:target: https://travis-ci.org/gifbitjapan/pytunes-reporter
.. image:: https://coveralls.io/repos/github/gifbitjapan/pytunes-reporter/badge.svg?branch=master
:target: https://coveralls.io/github/gifbitjapan/pytunes-reporter?branch=master
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_key property of an already instantiated ``Reporter``
object::
from reporter import Reporter
rep = Reporter(access_key='29c656f3-2dcf-4140-9346-96633197af82')
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.
pyTunes Reporter
============
.. image:: https://badge.fury.io/py/pytunes-reporter.svg
:target: https://badge.fury.io/py/pytunes-reporter
.. image:: https://travis-ci.org/gifbitjapan/pytunes-reporter.svg?branch=master
:target: https://travis-ci.org/gifbitjapan/pytunes-reporter
.. image:: https://coveralls.io/repos/github/gifbitjapan/pytunes-reporter/badge.svg?branch=master
:target: https://coveralls.io/github/gifbitjapan/pytunes-reporter?branch=master
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_key property of an already instantiated ``Reporter``
object::
from reporter import Reporter
rep = Reporter(access_key='29c656f3-2dcf-4140-9346-96633197af82')
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.
Project details
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 pytunes-reporter-0.2.2.tar.gz
.
File metadata
- Download URL: pytunes-reporter-0.2.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25c422bd597e3b2ad76269c28447bc789a6250fbf3efe4bee4523151abc1312 |
|
MD5 | aec7041040045cbb8829bc736ef7f3db |
|
BLAKE2b-256 | 82c3e75d9e220b6f80c5f34c6076de052d547b8614e9fad5f60507c2226fb70b |