This repository contains code examples to use Python with Neo4j Aura.
Important
To use GitHub Codespaces you will need to login with a GitHub account. You can use the GitHub Codespaces free monthly usage to view these examples.
Install the neo4j
Python pakage.
pip install neo4j
connect.py
- Connect to a Neo4j Graph Databaserun_cypher.py
- Run a Cypher statementcreate_data.py
- Read data from a CSV file and create nodes and relationshipstransaction.py
- Execute cypher in a transactionexport_to_dataframe.py
- Export data to a Pandas DataFrame
To run the examples on your environment, you will need to:
- Install the required packages including the
neo4j
Python driver.:pip install -r requirements.txt
- Create a new
.env
file and copy the contents of the.env.example
file into it - Update the environment values in the
.env
file with the values in your Aura Credentials file which you downloaded when creating your instance. - Run the
test_environment.py
program to check the environment is set up correctly.