Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python client for cshenton/seer

Project description

# Seer Python Client
[![Build Status](](
[![Python Version](](

The python client for the seer forecasting server.

## Installation

The seer python client is available on PyPi, so just `pip install seer` to get the latest release.

## Usage

If you don't have a running instance of seer, then run the docker image:
docker run -d -p 8080:8080 cshenton/seer

Then, to interact over localhost
import datetime
import seer

# Input data, parameters
host = "localhost:8080"
name = "myStream"
period = 3600
times = [...]
values = [...]
forecast_length = 100

# Connect to the server and create a stream
client = seer.Client(host)
client.create_stream(name, period)

# Feed in most of the data, generate a forecast
client.update_stream(name, times, values)
f = client.get_forecast(name, forecast_length)

# Graph the forecast against the true result
def graph(times, values, forecast):

graph(times, values, f)

## (For Contributors) Generating gRPC stubs

Assuming this repo is stored in `cshenton/seer-python`, next to `cshenton/seer`,
we generate client stubs with:

# Generates and
python -m grpc_tools.protoc -I ../seer/seer --python_out=./seer --grpc_python_out=./seer ../seer/seer/seer.proto

Then, because the grpc devs don't care about python 3, we need to fix the relative imports.
# in
# From this
import seer_pb2 as seer__pb2

# To this
from . import seer_pb2 as seer__pb2

Project details

Release history Release notifications

This version
History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
seer-0.1.1.tar.gz (7.8 kB) Copy SHA256 hash SHA256 Source None Mar 14, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page