<commit_before>Gapy
====

Gapy is a thin service account client for Google Analytics. 

Get set up
----------

First you need to create either a service account or client ID in your
[Google API Console](https://code.google.com/apis/console). If you're
authenticating as a service account you'll need to download your private key.
If you're authenticating as a web or installed application you'll need to
download your client secrets file (Download JSON in API Access list).

Then just create a gapy client and start querying. Ids, metrics and dimensions are provided without the `ga:` prefix.
They can be provided as lists or single values.

.. code:: python
    import gapy

    # For a service account
    client = gapy.client_from_private_key(
        "your account name",
        private_key="your private key",<commit_msg>Remove language hint in readme<commit_after>Gapy
====

Gapy is a thin service account client for Google Analytics. 

Get set up
----------

First you need to create either a service account or client ID in your
[Google API Console](https://code.google.com/apis/console). If you're
authenticating as a service account you'll need to download your private key.
If you're authenticating as a web or installed application you'll need to
download your client secrets file (Download JSON in API Access list).

Then just create a gapy client and start querying. Ids, metrics and dimensions are provided without the `ga:` prefix.
They can be provided as lists or single values.

    import gapy

    # For a service account
    client = gapy.client_from_private_key(
        "your account name",
        private_key="your private key",
{'fraction_non_alphanumeric': 0.07013301088270858, 'fraction_numerical': 0.0, 'mean_word_length': 3.675141242937853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1002210', 'n_tokens_mistral': 429, 'n_tokens_neox': 415, 'n_words': 225}