Skip to main content

Test Release for RedisTimeSeries Python Client

Project description

license PyPI version CircleCI GitHub issues Codecov Language grade: Python

redistimeseries-py

Forum Gitter

redistimeseries-py is a package that gives developers easy access to RedisTimeSeries module. The package extends redis-py's interface with RedisTimeSeries's API.

Installation

$ pip install redistimeseries

API

The complete documentation of RedisTimeSeries's commands can be found at RedisTimeSeries's website.

Usage example

# Simple example
from redistimeseries.client import Client
rts = Client()
rts.create('test', labels={'Time':'Series'})
rts.add('test', 1, 1.12)
rts.add('test', 2, 1.12)
rts.get('test')                                  
rts.incrby('test',1)                               
rts.range('test', 0, -1)
rts.range('test', 0, -1, aggregation_type='avg', bucket_size_msec=10)
rts.range('test', 0, -1, aggregation_type='sum', bucket_size_msec=10)
rts.info('test').__dict__

# Example with rules
rts.create('source', retention_msecs=40)
rts.create('sumRule')
rts.create('avgRule')
rts.createrule('source', 'sumRule', 'sum', 20)
rts.createrule('source', 'avgRule', 'avg', 15)
rts.add('source', '*', 1)
rts.add('source', '*', 2)
rts.add('source', '*', 3)
rts.get('sumRule')
rts.get('avgRule')
rts.info('sumRule').__dict__

License

BSD 3-Clause

Project details


Download files

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

Source Distribution

test-release-rts-py-1.4.7.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_release_rts_py-1.4.7-py2-none-any.whl (7.7 kB view details)

Uploaded Python 2

File details

Details for the file test-release-rts-py-1.4.7.tar.gz.

File metadata

  • Download URL: test-release-rts-py-1.4.7.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.18

File hashes

Hashes for test-release-rts-py-1.4.7.tar.gz
Algorithm Hash digest
SHA256 1305baa5c2a2f6bb60e0ed9d9c60914a8a2de0da101d6cfb96b2628cec7a786f
MD5 12949323542706ca7d740a78dbda3620
BLAKE2b-256 0da9627c08822f306df2cf6d59f91f7a4e0da870831bad4e8865492b51cc4ac6

See more details on using hashes here.

File details

Details for the file test_release_rts_py-1.4.7-py2-none-any.whl.

File metadata

  • Download URL: test_release_rts_py-1.4.7-py2-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/2.7.18

File hashes

Hashes for test_release_rts_py-1.4.7-py2-none-any.whl
Algorithm Hash digest
SHA256 b73a41c733977ee7cd1d6bb5434b9bbfdfd95ea1a6537321c4f4dbc024552536
MD5 053a20231d786f3d3e6d3d8ad914a329
BLAKE2b-256 cf2fb2ff9c3c6dd28e1a3a81fb697cb83d2f73a6e818b0e02b42358ed1609a7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page