redistimeseries-py
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
Metadata
Release files for test-release-rts-py 1.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| test-release-rts-py-1.4.7.tar.gz | 7.3 kB | Without provenance | Details for test-release-rts-py-1.4.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| test_release_rts_py-1.4.7-py2-none-any.whl | Python 2 | none | any | Details for test_release_rts_py-1.4.7-py2-none-any.whl |
Total release size: 15.0 kB
Release files / test-release-rts-py-1.4.7.tar.gz
| Download URL | test-release-rts-py-1.4.7.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1305baa5c2a2f6bb60e0ed9d9c60914a8a2de0da101d6cfb96b2628cec7a786f
|
|
BLAKE2b-256 checksum How to use checksums |
0da9627c08822f306df2cf6d59f91f7a4e0da870831bad4e8865492b51cc4ac6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / test_release_rts_py-1.4.7-py2-none-any.whl
| Download URL | test_release_rts_py-1.4.7-py2-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b73a41c733977ee7cd1d6bb5434b9bbfdfd95ea1a6537321c4f4dbc024552536
|
|
BLAKE2b-256 checksum How to use checksums |
cf2fb2ff9c3c6dd28e1a3a81fb697cb83d2f73a6e818b0e02b42358ed1609a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for test-release-rts-py 1.4.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.