Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 869 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 869 Bytes

pymode

PyPI version PyPI - Status Build Status PyPI - Python Version PyPI - License

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
from pymode import Mode

ORGANIZATION = os.environ["MODE_ORGANIZATION"]
TOKEN = os.environ["MODE_API_TOKEN"]
PASSWORD = os.environ["MODE_API_PASSWORD"]

mode = Mode(organization=ORGANIZATION, token=TOKEN, password=PASSWORD)