mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
14 lines
385 B
Python
14 lines
385 B
Python
import taos
|
|
|
|
def test_connection():
|
|
# all parameters are optional.
|
|
conn = taos.connect(host="localhost",
|
|
port=6030,
|
|
user="root",
|
|
password="taosdata")
|
|
print('client info:', conn.client_info)
|
|
print('server info:', conn.server_info)
|
|
conn.close()
|
|
|
|
if __name__ == "__main__":
|
|
test_connection()
|