Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A easy to use interface to Google Analytics.

Project description

gaclient is a small library that implements an easy to use API
for consuming Google Analytics APIs.

Assuming you have already obtained a **refresh token** from the
user, retrieving metrics is as simple as::

>>> import gaclient
>>> session = gaclient.build_session(CLIENT_ID, CLIENT_SECRET,
{'refresh_token': REFRESH_TOKEN})
>>> it = gaclient.Cursor(session, PROFILE_ID,
'2012-01-01', '2012-01-01', ['visits'], ['date'])
>>> list(it)
[{'visits': 12345, 'date': datetime.date(2012, 1, 1)}]

For complete step-by-step guide on how to obtain a user's
consent please refer to the
`User Guide <http://www.python-gaclient.org/doc/0.3/guide.html>`_.


Features
--------

* Transparently queries Google Analytics for additional results
if any are available;
* Selecting any valid combination of dimensions and metrics;
* Server-side filtering;
* Server-side sorting;
* Data is returned in native Python types, parsed and
ready for you consumption.

Project details


Release history Release notifications

History Node

0.3b2

This version
History Node

0.3b1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gaclient-0.3b1.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None Oct 22, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page