A query generator for the InfluxDB SQL query syntax
Project description
A query generator for the InfluxDB SQL query syntax. Like SQLAlchemy but for InfluxDB. Consider this an experimental WIP.
Example
from influxdb import InfluxDBClient
from pyinfluxql import Engine, Query, Mean
client = InfluxDBClient('localhost', 8086, 'root', 'root', 'example')
engine = Engine(client)
query = Query(Mean('value')).from_('cpu_load') \
.where(time__gt=datetime.now() - timedelta(1))
.group_by(time=timedelta(hours=1))
engine.execute(query)
TODO
[X] integration tests against an InfluxDB server
[X] travis
[X] tox to test python versions
[] support for select expression aliases
[] support for create statements
[] support for show statements
[] support for drop statements
[] support for grant/revoke statements
[] support for alter statements
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
pyinfluxql-0.0.1.tar.gz
(5.7 kB
view details)
File details
Details for the file pyinfluxql-0.0.1.tar.gz
.
File metadata
- Download URL: pyinfluxql-0.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3ecd5d4b048e47a976fe064b0562e2946f7d7a6c4fbd682f5cb509e537a4309 |
|
MD5 | 628155d701a012b4bb7f808912c2ca62 |
|
BLAKE2b-256 | 9a27d33ba93289edcebb22da758bb6a16bd25c061e7fa0b7292ffbc715a21774 |