How to select database other than the default in py2neo

We have several databases in our system:

py2neo uses the one that has been set as the default. How can we access any of the other databases?

Hello @pwrose.ucsd :slight_smile:

I think this could help you:
https://py2neo.org/2.0/essentials.html#authentication

Regards,
Cobra

Make sure you are using the recent v5 version of py2neo.
Selecting the database can be done via de Graph() instance where you can select the database via the name parameter.

https://py2neo.org/v5/database.html#the-graph

Thanks, @Cobra and @webtic. The key was to use the prerelease version of py2neo v5 to get this to work.

2 Likes