Skip to main content

A simple yet powerful SDK for the YouTube Analytics API.

Project description

analytix logo

A simple yet powerful SDK for the YouTube Analytics API.

PyPI - Version PyPI - Python Version PyPI - Implementation

Features

  • Pythonic syntax lets you feel right at home
  • Dynamic error handling saves hours of troubleshooting and makes sure only valid requests count toward your API quota
  • A clever interface allows you to make multiple requests across multiple sessions without reauthorising
  • Extra support enables you to export reports in a variety of filetypes and to a number of DataFrame formats
  • Easy enough for beginners, but powerful enough for advanced users

Installation

Installing analytix

To install the latest stable version of analytix, use the following command:

pip install analytix

You can also install the latest development version using the following command:

pip install git+https://github.com/parafoxia/analytix

You may need to prefix these commands with a call to the Python interpreter depending on your OS and Python configuration.

OAuth authentication

All requests to the YouTube Analytics API need to be authorised through OAuth 2. In order to do this, you will need a Google Developers project with the YouTube Analytics API enabled. You can find instructions on how to do that in the API setup guide.

Once a project is set up, analytix handles authorisation — including token refreshing — for you.

More details regarding how and when refresh tokens expire can be found on the Google Identity documentation.

Usage

This is an alpha version, and is subject to change.

Compatibility

Python 3.11 or above is required. The CPython and PyPy implementations are both officially supported. Windows, MacOS, and Linux are all supported.

Support for other configurations or functionality requiring optional libraries cannot be guaranteed.

Contributing

Contributions are very much welcome! Have a look at the contributing guide to get started.

License

This project is licensed under the BSD 3-Clause "New" or "Revised" License.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

analytix-6.0.0a3.tar.gz (178.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

analytix-6.0.0a3-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file analytix-6.0.0a3.tar.gz.

File metadata

  • Download URL: analytix-6.0.0a3.tar.gz
  • Upload date:
  • Size: 178.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for analytix-6.0.0a3.tar.gz
Algorithm Hash digest
SHA256 701f45153f0c651e5c1c2808437fb9b4b61d0f1407939533e1fe1f32a8a79fad
MD5 926680636c48e6a1b1f501c1873a2814
BLAKE2b-256 58bdd7787a72f4f79ac136f8107a77c205449a7194c443675577c39b90bf9299

See more details on using hashes here.

File details

Details for the file analytix-6.0.0a3-py3-none-any.whl.

File metadata

  • Download URL: analytix-6.0.0a3-py3-none-any.whl
  • Upload date:
  • Size: 47.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for analytix-6.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe1251484e13529ffe7f11e69550709c7c93e6badbab48477f6ecaf3b1df1c7f
MD5 0261cc8b613628f1eadd7edd57411d2b
BLAKE2b-256 a36109b7523a1a847df813712eef9221739832076e919dfef07052a30e45b0ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page