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 neo4jconnect.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
neo4jPython driver.:pip install -r requirements.txt
- Create a new
.envfile and copy the contents of the.env.examplefile into it - Update the environment values in the
.envfile with the values in your Aura Credentials file which you downloaded when creating your instance. - Run the
test_environment.pyprogram to check the environment is set up correctly.