pip install nebula-python
from nebula.graph import ttypes
from nebula.ConnectionPool import ConnectionPool
from nebula.Client import GraphClient
connection_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()