You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A .devcontainer configuration is included, and when opened, such as in a GitHub codespace, all the required software and packages will be installed.
4
+
5
+
You will need to:
6
+
7
+
1. Create a new [`.env`](.env) file and copy the contents of the [`.env.example`](.env.example) file into it
8
+
2. Update the environment values in the [`.env`](.env) file with the values in your Aura Credentials file which you downloaded when creating your instance.
9
+
3. Run the [`test_environment.py`](./llm-knowledge-graph/test_environment.py) program to check the environment is set up correctly.
10
+
11
+
You can explore the [`examples`](../examples/) to see how you can use the Neo4j Python driver with Aura.
This repository contains code examples to use Python with Neo4j Aura.
4
+
5
+
[](https://github.com/codespaces/new/martinohanlon/neo4j-py-example)
6
+
7
+
> [!IMPORTANT]
8
+
> To use GitHub Codespaces you will need to login with a GitHub account.
9
+
> You can use the [GitHub Codespaces free monthly usage](https://docs.github.com/en/billing/managing-billing-for-your-products/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#monthly-included-storage-and-core-hours-for-personal-accounts) to view these examples.
10
+
11
+
## Install
12
+
13
+
Install the [`neo4j` Python pakage](https://neo4j.com/docs/python-manual/current/).
14
+
15
+
```bash
16
+
pip install neo4j
17
+
```
18
+
19
+
## Examples
20
+
21
+
-[`connect.py` - Connect to a Neo4j Graph Database](examples/connect.py)
22
+
-[`run_cypher.py` - Run a Cypher statement](examples/run_cypher.py)
23
+
-[`create_data.py` - Read data from a CSV file and create nodes and relationships](examples/create.py)
24
+
-[`transaction.py` - Execute cypher in a transaction](examples/transaction.py)
25
+
-[`export_to_dataframe.py` - Export data to a Pandas DataFrame ](examples/export_to_dataframe.py)
26
+
27
+
## Run
28
+
29
+
To run the examples on your environment, you will need to:
30
+
31
+
1. Install the required packages including the [`neo4j` Python driver](https://neo4j.com/docs/python-manual/current/).:
32
+
```bash
33
+
pip install -r requirements.txt
34
+
```
35
+
1. Create a new [`.env`](.env) file and copy the contents of the [`.env.example`](.env.example) file into it
36
+
1. Update the environment values in the [`.env`](.env) file with the values in your Aura Credentials file which you downloaded when creating your instance.
37
+
1. Run the [`test_environment.py`](./llm-knowledge-graph/test_environment.py) program to check the environment is set up correctly.
0 commit comments