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.4.tar.gz (4.2 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.4-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pymode-1.1.4.tar.gz
  • Upload date:
  • Size: 4.2 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.4.tar.gz
Algorithm Hash digest
SHA256 ce86640c3aa9860124cb5f065ca308035b0e5d8e6e22eb7b04d13ec2590e127b
MD5 5e915fdc5b7743d768d6a2068a6da1a0
BLAKE2b-256 d9785df701a393e2138a3b8fc6bc5b96cd3dbd31ab024ed71b38f5ba1ef18318

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymode-1.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ef11b3ff072712cca97c72f8b404d79f2efc4e95f483c30926dafe24ccf84702
MD5 78dfa620399c62fa11666d6149cd56ad
BLAKE2b-256 800c3154543060f7a92bd4f65c1fc1f46f7b4169df7542640aefaf112bff7c17

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