semvec/pypi-packages huggingface dataset:
lrrr 0.2.0
static website builder
License: MIT
Requires Python: >=3.6
Keywords: webpage,jupyter,markdown

![](https://raw.githubusercontent.com/nimbus-bp-1729/lrrr/master/pics/lrrr.png)

![GitHub](https://img.shields.io/github/license/nimbus-bp-1729/lrrr)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/lrrr)
![PyPI](https://img.shields.io/pypi/v/lrrr)
![PyPI - Downloads](https://img.shields.io/pypi/dm/lrrr?color=aqua)

# Lrrr

**Work in progress**

# MIT License

**Copyright (c) 2020 Kevin J. Walchko**

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
pyinfluxql 0.1.3
A query generator for the SQL dialect of the Influx Query Language (InfluxQL)
License: MIT
Keywords: influxdb influxql sql query generator acquisition graphing export engine

##########
PyInfluxQL
##########

.. image:: https://github.com/daq-tools/pyinfluxql/workflows/Tests/badge.svg
    :target: https://github.com/daq-tools/pyinfluxql/actions?workflow=Tests

.. image:: https://img.shields.io/pypi/pyversions/pyinfluxql.svg
    :target: https://python.org

.. image:: https://img.shields.io/pypi/v/pyinfluxql.svg
    :target: https://pypi.org/project/pyinfluxql/

.. image:: https://img.shields.io/pypi/dm/pyinfluxql.svg
    :target: https://pypi.org/project/pyinfluxql/

.. image:: https://img.shields.io/pypi/status/pyinfluxql.svg
    :target: https://pypi.org/project/pyinfluxql/

.. image:: https://img.shields.io/pypi/l/pyinfluxql.svg
    :target: https://pypi.org/project/pyinfluxql/


*****
About
*****
A query generator for the SQL dialect of the `Influx Query Language (InfluxQL)`_.
Like SQLAlchemy but for InfluxDB. Consider this an experimental WIP.

.. _Influx Query Language (InfluxQL): https://docs.influxdata.com/influxdb/v1.8/query_language/


********
Synopsis
********
.. code-block:: python

    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)


*****
Tests
*****
How to invoke the test suite.

Using Tox
=========
Run InfluxDB within Docker::

    docker run -it --rm --publish 8086:8086 influxdb:1.8.3

Run ``tox``::

    tox


Using sandbox
=============
Alternatively, setup package in development mode::

    python3 -mvenv .venv
    source .venv/bin/activate
    pip install --editable=.[test]

Run ``pytest``::

    pytest tests -vvv


*******
Credits
*******
Thanks a stack to the original author `Jeremiah Malina`_ for his excellent
work as well as `Michael Pérez`_ for adding integration tests, timezone support
and for improving the documentation.


.. _Jeremiah Malina: https://github.com/jjmalina
.. _Michael Pérez: https://github.com/puhrez