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.2.tar.gz (4.1 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.2-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

Hashes for pymode-1.1.2.tar.gz
Algorithm Hash digest
SHA256 c0b0e544f26254e1d7229c69dc604ddb6a3f24021f0f298ec74640918a889a16
MD5 a2eff00d7472e4b6642b7614c7f7cddd
BLAKE2b-256 979de6a4274077fc7105582e2749a567f4ab36861b4e98c8532767d338ba5796

See more details on using hashes here.

File details

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

File metadata

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

Hashes for pymode-1.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c4bb2ce4d29c187979e1eb301fedfa0c6149d9ca4f7313d21e067d62364ae381
MD5 d1574a86101c4c97a39f5bab8d9191f9
BLAKE2b-256 a775f853f822084def5a02534b87e9700677e23d2194e9416a9366c3981112af

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