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.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymode-1.1.1-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pymode-1.1.1.tar.gz.

File metadata

  • Download URL: pymode-1.1.1.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

Hashes for pymode-1.1.1.tar.gz
Algorithm Hash digest
SHA256 240f3070dce148541a7fb7c07ef8da7656996e5f2bf4b22b712c668f3d4d80ba
MD5 4987ab3bd1eb061a6e18c618f375f1d2
BLAKE2b-256 360dcf4d66e976e7820f104b3a7271552e5f1d80bc2fafddf53fe9d5dc0499fd

See more details on using hashes here.

File details

Details for the file pymode-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pymode-1.1.1-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

Hashes for pymode-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 35695f6511b66bea7c02b0b9e4d9e451d8094b687977a5dd2e3fa7c22352e780
MD5 915aa955a5cf5e3580240b74079fd01d
BLAKE2b-256 b59d576252200e68a69a977fb1448853dc52a0ed6acd653cc5c97c8fad663709

See more details on using hashes here.

Supported by

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