Questions tagged [neo4j-python-driver]

The Neo4j Python driver is officially supported by Neo4j and connects to the database using the binary protocol. It aims to be minimal, while being idiomatic to Python.

Neo4j is a highly scalable native graph database that leverages data relationships as first-class entities, helping enterprises build intelligent applications to meet today’s evolving data challenges. Neo4j's native graph storage and processing engine deliver constant, real-time performance. The Neo4j Python driver is officially supported by Neo4j and connects to the database using the binary protocol. It aims to be minimal, while being idiomatic to Python.

To install neo4j driver using pip execute the below command

pip install neo4j-driver==1.0.0
41 questions
0
votes
1 answer

Get transaction id when using neo4j Bolt drivers (Python or Java)?

I'm trying to build a REST API to hide the complexity of Cypher from the user who will use my program building simple and high-level API calls to interact with the Neo4j Graph. I want to give the user the possibility to work with transactions like…
AGL
  • 116
  • 1
  • 7
0
votes
1 answer

Passing parameters as dict to tx.run in Neo4j

I'm trying to write a generic function to take a Cypher query and a dictionary of parameters and be able to dynamically run any given query. What I have looks like this: def _run_cypher(tx, cypher, params = {}): results = [] tx.run(cypher,…
Alex
  • 335
  • 2
  • 11
0
votes
1 answer

How to load lists of lists as string in neo4j using py2neo

I have sample param_list- param_list = [{ "labels" : ["test"], "properties" : {"some_list" : "[['sample', 'testing']]"} }] and have cypher templates- cypher_template = """UNWIND $batch as row CALL apoc.create.node(row.labels,…
krishna reddy
  • 295
  • 2
  • 15
0
votes
0 answers

linter error on `with` vs simple variable assignment (neo4j driver)

This works as documented: with driver.session() as session: but my linter throws an error on this: session = driver.session() > Assigning result of a function call, where the function has no returnpylint(assignment-from-no-return) I…
dcsan
  • 11,333
  • 15
  • 77
  • 118
0
votes
1 answer

how to handle connection lost to server because of heap size error?

I have a large data set which contains 22 million records in JSON format and I use apoc.periodic.iterate and apoc.mongodb to import that from mongodb database to neo4j. after importing 3 million of records and occupying 6g of memory the connection…
ali
  • 1
  • 1
0
votes
1 answer

Bolt connection is selectively slow with cypher queries while Web based GUI is always fast

I have two queries: q1 and q2. I use the code below to query my neo4j database. driver = GraphDatabase.driver("bolt://localhost:7687",auth= neo4j_user,neo4j_password)) neo4j_session = driver.session() t =…
0
votes
0 answers

o.n.b.v.t.BoltProtocolV1- Failed to write response to driver Cannot write to buffer when closed

I am using neo4j 3.1.3 version where I am getting following error: 2018-02-28 05:17:27.780+0000 ERROR [o.n.b.v.t.BoltProtocolV1] Failed to write response to driver Cannot write to buffer when closed java.io.IOException: Cannot write to buffer when…
Darshil Babel
  • 145
  • 1
  • 1
  • 10
0
votes
1 answer

NEO4J MERGE is not working as expected

I am new in neo4j and I am having problems with the MERGE clause. I have a method to do queries like this: def upsert (idValue, valueField1): query = "MERGE (n:Node {id: '" + idValue+ "'}) " query += "ON MATCH SET n.field1= n.field1+ " +…
Manwelanza
  • 31
  • 4
0
votes
1 answer

Service unavailable error using neo4j driver for python

I am new to neo4j and trying to execute the demo project(Movie search) provided in neo4j website. While doing so I am getting an error to instantiate neo4j server from python. Alternatively, I am able to up and run neo4j server externally and use…
Kaustav Roy
  • 49
  • 1
  • 5
0
votes
1 answer

session.run() doesn't run properly when called from a self made library using python

I have made a library of various functions in python which when called maps relationships between nodes. I have been facing issues as and when I call those function from the library they tend to work occasionally. When I run the same code in the…
user7310181
0
votes
1 answer

unable to run cypher query for neo4j on python

Have been trying to run query neo4j database using python. The code works for simplest of queries, but not for all. I dont get any exception, and the dont understand the root cause going by log files. My code looks like this.. from neo4j.v1 import…
mayank
  • 11
  • 3
1 2
3