Skip to main content

Python SDK for the Mode v2 API.

Project description

License: MIT Build Status Python Versions

PyMode

PyMode is a Python 3.x library to enable typed interactions with the Mode Analytics v2 API.

Installation

$ pip install pymode

Example Usage

import os
import pymode

ACCOUNT_NAME = os.environ["MODE_ACCOUNT_NAME"]
TOKEN = os.environ["MODE_API_TOKEN"]
PASSWORD = os.environ["MODE_API_PASSWORD"]

mode = pymode.Mode(account_name=MODE_ACCOUNT_NAME, token=TOKEN, password=PASSWORD)

for space in mode.list_spaces():
    for report in mode.list_reports(space_token=space.get('token')):
        print(report.get('name'))

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

pymode-1.1.4.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

pymode-1.1.4-py2.py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 2 Python 3

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