Python调用ONgDB-HTTP接口

 

Here’s the table of contents:

  1. 安装包
  2. ipython-cypher

安装包

pip install ipython-cypher

ipython-cypher

# -*- coding: utf-8 -*-
"""
Created on Tue Oct 27 15:13:46 2020
@author: XXX
"""
import cypher
con = "http://ongdb:testlab%pro@testlab.ongdb.http.server/db/data"
#con = "http://ongdb:testlab%pro@10.20.13.200/db/data"
query = """
    MATCH p=()-->()-->() RETURN p LIMIT 100
"""
comp_list = cypher.run(query, conn=con)