Python client to talk to a tshistory time series store through its rest api endpoint (provided in `tshistory_rest`).
api/get: pass the private _keep_nans
api/insertion_dates: add base support
api/formula: handle formula expansion

heads

default
browse log
0.6.0
browse .tar.gz

clone

read-only
https://hg.sr.ht/~pythonian/tshistory_client
read/write
ssh://hg@hg.sr.ht/~pythonian/tshistory_client

TSHISTORY CLIENT

This library provides easy access to tshistory instances exposed with the help of tshistory_rest (http end points).

All the base tshistory api is available from there.

Examples

Direct invocation

from tshistory_client.api import Client
 
 c = Client('http://my.tshistory.instance/api')
 series = c.get('banana_spot_price')

Using the tshistory api

from tshistory.api import timeseries
 
 c = timeseries('http://my.tshistory.instance/api')
 series = c.get('banana_spot_price')

Of course for this to work you need to have tshistory locally installed (through e.g. pip install tshistory).