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.3.tar.gz
(4.1 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.3.tar.gz.
File metadata
- Download URL: pymode-1.1.3.tar.gz
- Upload date:
- Size: 4.1 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 |
7464969d26113ebb5c7e51024ddf82d73176a1d55619acfb68e9d1064b343dac
|
|
| MD5 |
9a878dc09d237869dcf50ab34abcc51b
|
|
| BLAKE2b-256 |
1dc11c1727f68575396f81e6bfe01c51a4def27d0fb884886707a25d0a3fa25b
|
File details
Details for the file pymode-1.1.3-py2.py3-none-any.whl.
File metadata
- Download URL: pymode-1.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 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 |
bee7e4f8a9b160a310ce60c58be9f7df1735139aa942421a74d0ab475d8557da
|
|
| MD5 |
e08ac05dad729d1544bd189bcb415b38
|
|
| BLAKE2b-256 |
9c126c5e14444575dad48602f104abe5499be55e19481a2551a3024bd2d67f34
|