https://www.python.org/dev/peps/pep-0249/
from pyiotdb.db import connect
ip = "ip"
port = 6668
username = 'root'
password = 'root'
conn = connect(host=ip, port=port, username=username, password=password)
cursor = conn.cursor()
cursor.execute('show storage group')
print(cursor.rowcount)from sqlalchemy.engine import create_engine
engine = create_engine('iotdb://root:root@ip:6668/')
connection = engine.connect()
result = connection.execute("SHOW STORAGE GROUP")
for row in result.fetchall():
print(row['storage group'])python3.7
pip3 install 'future'
pip3 install 'python-dateutil'
pip3 install 'apache-iotdb==0.12.2'
pip3 install 'more-itertools==8.3.0'