pip install nebula-python
from nebula.graph import ttypesfrom nebula.ConnectionPool import ConnectionPoolfrom nebula.Client import GraphClientconnection_pool = ConnectionPool('127.0.0.1', 3699)client = GraphClient(connection_pool)auth_resp = client.authenticate('user', 'password')query_resp = client.execute_query('SHOW SPACES') # 执行语句client.sign_out()connection_pool.close()
