Skip to main content

Python library for Yandex Metrika API

Project description

The library support only JSON format.

Sign in via login and password, code or token.

Example usage

#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from yametrikapy import Metrika

def main():
    client_id = '6993a3cd88e34ac686504790c7fe341c'
    login = ''
    password = ''

    metrika = Metrika(client_id, login, password)

    counters = metrika.GetCounterList().counters
    print counters

    # output obtained data
    print metrika.GetData()

if __name__ == '__main__':
    main()

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

yametrikapy-0.1.0.zip (13.3 kB view hashes)

Uploaded Source

Supported by

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