Skip to main content
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.

Metadata

Release files for redash-client 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redash-client 0.2.8
File Size Uploaded Provenance Actions
redash_client-0.2.8.tar.gz 5.3 kB Without provenance Details for redash_client-0.2.8.tar.gz

Release files / redash_client-0.2.8.tar.gz

Download URL redash_client-0.2.8.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
53dc0d7233420391a8009677f1378eeb22d5a5c7881b584cd05bf115453cd744
BLAKE2b-256 checksum
How to use checksums
665e065d7d0a66c104b99c1145cb5529a5d330323ccb36918d9e9b800e107a7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15

Security for redash-client 0.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page