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:
- Import the
Graphclass from theneo4py.
from neo4py-atharnaveed import Graph
- Create a
graphobject and pass your URI, and connection details to theGraphconstructor.
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.
- 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.😊
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neo4py-atharnaveed-1.0.2b0.tar.gz | 7.5 kB | Without provenance | Details for neo4py-atharnaveed-1.0.2b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neo4py_atharnaveed-1.0.2b0-py3-none-any.whl | Python 3 | none | any | Details for neo4py_atharnaveed-1.0.2b0-py3-none-any.whl |
Total release size: 15.3 kB
Security for neo4py-atharnaveed 1.0.2b0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.