Tutorial on the requirements, installation, and basic use of Neo4j's python driver. Covers using Neo4j Desktop to run local instances and graph databases, including how to create, switch between, and delete/remove databases.
Also walk through sample code from driver readme, detailing elements of the sample API, how to write payloads with dictionaries and list of dictionaries, and a break down of the results objects returned from running various read statements.
Links:
Neo4j Python driver on pypi: https://pypi.org/project/neo4j/
Official repo: https://github.com/neo4j/neo4j-python-driver
Official Neo4j driver docs: https://neo4j.com/docs/api/python-driver/current/
Free GraphAcademy course on Neo4j + Python: https://graphacademy.neo4j.com/courses/drivers-python/?category=software-development
Attributions:
Opening and closing music by AllWorldMusic
Timestamps:
00:00 Introduction
00:13 Creating and deleting databases with Neo4j Desktop
01:48 Adding the driver to a python project
02:07 Sample code walkthrough
03:39 execute_query function, args, and parameters
04:23 Using the parameters_ arg
05:15 MERGE vs CREATE command
05:53 Writing list data
08:07 Reading data
09:49 Return statement affects result format
10:50 Extracting element_id and node labels
12:35 ResultSummary object and updating nodes
14:09 Wrap up