Skip to main content

Python client for Grok Prediction Service

Project description

# grok-py

The Python client library for the Grok Prediction Service

A note about releases:

Development of Grok client libraries happens internally and is then released to github master at the same time as we release server side code. Github master branch can thus be considered STABLE.

## Installation

From source (includes sample app):

Click the ‘Downloads’ link Click either ‘Download as zip’ or ‘Download as tar.gz’ Unpack into a directory of your choice

$ sudo python setup.py install

From pip:

$ sudo pip install grokpy

Dependency (For HTTPS):

$ sudo pip install certifi

## Run the Sample App

Add your API key to the app

  • Open HelloGrok.py in your favorite editor
  • Insert your API_KEY where it says “YOUR_API_KEY”

OR add your API key to your environment

From the command line:

$ echo “export GROK_API_KEY=YOUR_API_KEY” >> ~/.bashrc $ source ~/.bashrc

Launch the app

$ python HelloGrok.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for grokpy, version 0.2.10
Filename, size File type Python version Upload date Hashes
Filename, size grokpy-0.2.10.tar.gz (72.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page