Hi Folks,
as already discussed before I made a small pypi package to make it easier for
us to use IoTDB in Python with Release 0.10.1 (as the python stuff there was
not straightforward to include).
I recently pushed a new version with support fort he awesome Python
Testcontainers Project:
https://testcontainers-python.readthedocs.io/en/latest/index.html
You can now do a (Docker) based IoTDB Test like that:
class MyTestCase(unittest.TestCase):
def test_something(self):
with IoTDBContainer() as c:
session = Session('localhost', c.get_exposed_port(6667), 'root',
'root')
session.open(False)
result = session.execute_query_statement("SHOW TIMESERIES")
print(result)
session.close()
This will start a IoTDB Container and call your code as soon as ist ready (and
take it down afterwards).
You find the lib here: https://pypi.org/project/iotdb-session-0.10.1/
And the Code is here: https://github.com/JulianFeinauer/iotdb-session-py
Best
Julian