5

I am creating a flask restful api to import data in to neo4j using Py2neo. As authentication is to be done in every request, I want my neo4j connection to be terminated at the end of each request such that subsequent requests with different auth info wouldn't use the previous credentials.

Is there any way to do this in Py2neo?

Akash Tripathy
  • 117
  • 2
  • 6
  • You could initialize a new Graph instance every request. – Nicole White Aug 30 '16 at 01:35
  • Would love to get a little more info on this. I have a Jupyter notebook running and the connection dies sometimes -- would be great to purposefully close the connection and reopen it so that it doesn't just hang and die over the course of time. – Monica Heddneck Aug 01 '17 at 18:04

0 Answers0