Python SDK for the Mode v2 API.
Project description
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
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
pymode-1.1.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pymode-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c7a962c7467c200a5d4c2f982472acdb3df30b6e3e27a347bebcfc2119ce9f |
|
MD5 | 76d6b203d46c74221b253c2ee495fdb2 |
|
BLAKE2b-256 | 8f2aba1840e586c5ce8a931e5cbcef185489fc409ee2855af0b3537c4e95f572 |