kairos

Time series data storage using Redis
Download

kairos Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Aaron Westendorf
  • Publisher web site:
  • https://github.com/agoragames/

kairos Tags


kairos Description

kairos is a Python module that provides time series storage using a Redis backend. kairos is intended to replace RRD in situations where the scale of Redis is required, with as few dependencies on other packages as possible. It should work with gevent out of the box.UsageInstall redis and kairos.from kairos import Timeseriesimport redisclient = redis.Redis('localhost', 6379)t = Timeseries(client, { 'minute':{ 'step':60, # 60 seconds 'steps':120, # last 2 hours 'read_cast' : float, # cast all results as floats }})t.insert('example', 3.14159)t.insert('example', 2.71828)print t.get('example', 'minute')Each retrieval function will by default return an ordered dictionary, though condensed results are also available. Run script/example to see standard output; watch -n 4 script/example is a useful tool as well.InstallationKairos is available on pypi and can be installed using pippip install kairosIf installing from source: with development requirements (e.g. testing frameworks) pip install -r development.pip without development requirements pip install -r requirements.pipNote that kairos does not by default require the redis package, nor does it require hiredis though it is strongly recommended.Product's homepage


kairos Related Software