Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
redash_client
.flake8
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
Makefile
README.rst
lambda.sh
requirements.txt
setup.cfg
setup.py
test_requirements.txt

README.rst

https://travis-ci.org/mozilla/redash_client.svg?branch=master https://coveralls.io/repos/github/mozilla/redash_client/badge.svg?branch=master

Redash Python Client

A client for the Redash API for stmo (https://sql.telemetry.mozilla.org)

Install

pip install redash_client

Usage

Before using RedashClient, set the REDASH_API_KEY environment variable to your Redash API key:

export REDASH_API_KEY=<your_api_key>

To import and use RedashClient:

import os
from redash_client.client import RedashClient

api_key = os.environ["REDASH_API_KEY"]
redash_client = RedashClient(api_key)

# Make a Redash API call:
redash_client.search_queries("AS Template:")

Package for Pip

First, you must update the version field in setup.py. Then run this commands:

python setup.py sdist bdist_wheel
twine upload dist/*

Make sure you have wheel and twine installed.

You can’t perform that action at this time.