Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Neo4py

Introduction

Neo4py is an alternative to py2neo. I am trying my best to make it a perfect and better clone of the py2neo package.

How to run a query in neo4py

As it is a clone of py2neo so, I have added the similar functions like of py2neo so, that the users won't have the problem in migrating from py2neo to neo4py.

These are the steps you can use to execute a query in neo4py:

  1. Import the Graph class from the neo4py.

from neo4py-atharnaveed import Graph

  1. Create a graph object and pass your URI, and connection details to the Graph constructor.

graph = Graph("connection_uri",("user","db_password"))

# Example code
graph = Graph("bolt://localhost:7687",("neo4j","12345678"))

You can find your connection uri and user details, when you'll start your database and open neo4j browser. Password is the password that you have set while creating the database.


  1. Now make a python dictionary, pass the data to it, and run and write the query by using built-in run method.

data = {
    "name" : "John Doe",
    "age": 21
}
node = graph.run("CREATE (p:Person {name:$name,age:$age})", **data)

Final Words

For any issues, please open an issue. I am open for suggesstions, contributions, and collaborations.😊

Release files for neo4py-atharnaveed 1.0.2b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neo4py-atharnaveed 1.0.2b0
File Size Uploaded
neo4py-atharnaveed-1.0.2b0.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neo4py-atharnaveed 1.0.2b0
File Interpreter ABI Platform
neo4py_atharnaveed-1.0.2b0-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / neo4py-atharnaveed-1.0.2b0.tar.gz

Download URL neo4py-atharnaveed-1.0.2b0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bf9ea32e6e255c5f00620d35aa9f01b00f7b1a38f3ed28f0b40e8eb53459d3a5
BLAKE2b-256 checksum
How to use checksums
e97b4b79d1964022c2b9a4e8ce697d8dc27505ed60e691ad36c56d83ca7eca28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.0

Release files / neo4py_atharnaveed-1.0.2b0-py3-none-any.whl

Download URL neo4py_atharnaveed-1.0.2b0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af8ecb72a290817b4641f9e9f6b4fb044ed26ab491e733566ba286e7f5f5f3f9
BLAKE2b-256 checksum
How to use checksums
4f413876f336f07b0abf7c90286fcb3c2fb21f42d7048538d02b837db78e0101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.0.2b0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page