Good tutorials on py2neo?

I'm getting back into neo4j and the py2neo ORM seems the nicest way to work with the data, and the drivers had a lot of updates since pandemic started.

But the docs are still sorely lacking. I was wondering if others can share links or code snippets that demo some of the features working with py2neo?

for example:

Hi @DC1, the documentation for py2neo are very detailed.

my code for neo4j pivot -> Neo4j – Pivot Functionality – Dominic KUMAR's blog

Can you maybe give an idea of what you are trying to do or what errors you are getting from your script?

Personally (and just a matter of preference), I use the official Python neo4j package over py2neo and find that it does all that I need it to, plus I find the docs to be pretty helpful. But YMMV.

Hi @cj20011, as your request for a code snippet , I shared my code where I used py2neo. I am not getting any errors from my script.

I am also currently moving towards Neo4j python, since py2neo doesn't support Clustering. We have Cluster setup for Production. Hope this works for you. ..

thanks for your replies all
@dominicvivek06 nice tutorials and blog!

@cj20011 I'm trying to build a knowledge graph from reddit posts. esp liked the one on demo data, tho not so python related.

It's just taking me time to find how to do things like "don't create duplicate nodes" or if there's a way to create a node and relation at the same time. Probably basic for someone who knows neo4j but quite slow and hard to find with py2neo.

I would prefer long term to use an ORM, rather than writing raw cypher queries. I find it a more natural way to think about my data models and add features as I need them to the right classes. I think py2neo also allows you to drop down into run cypher queries so it's the best of both worlds? Is there anything significant missing that is in the official python driver?

@DC1 - This is 100% correct, and this is how the application should be built.
`

I would prefer long term to use an ORM, rather than writing raw cypher queries. I find it a more natural way to think about my data models and add features as I need them to the right classes.

`

py2neo doesn't have close() method, but official neo4j python does.
py2neo is not cluster-aware, but official neo4j python is.

One of the thread I replied to

I've started a series of blog posts on the Neo4j python driver and will eventually extend into Py2Neo. Not sure if what I have is complete enough to answer your questions but stay tuned as more is coming.