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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymode-1.1.0.tar.gz.
File metadata
- Download URL: pymode-1.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5934dfd437a5311e2bbb2a7e31d52e214dd5ae0bf2037d22305bf0c32915c08
|
|
| MD5 |
f69c8e3672a5e78a76de76adeb44f390
|
|
| BLAKE2b-256 |
b70c7e62c51fe3d3b67a372853c367a367ebf7de21cabadb1a7f75bc2365fbff
|
File details
Details for the file pymode-1.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: pymode-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97c7a962c7467c200a5d4c2f982472acdb3df30b6e3e27a347bebcfc2119ce9f
|
|
| MD5 |
76d6b203d46c74221b253c2ee495fdb2
|
|
| BLAKE2b-256 |
8f2aba1840e586c5ce8a931e5cbcef185489fc409ee2855af0b3537c4e95f572
|