neo4py


Nameneo4py JSON
Version 1.1.5 PyPI version JSON
download
home_pageNone
SummaryNeo4py is a better alternative to py2neo.
upload_time2024-08-22 12:31:22
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords neo4j alternative neo4py py2neo graph database
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Neo4py
A proper documentation to __neo4py__ is available [here](https://neo4pydocs.vercel.app/).
## 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:

<br>

1. First install `neo4py` using either __pip__ or __uv__.

```
pip install neo4py

# or you can use uv for this

uv pip install neo4py
```

<br>

2. Import the `Graph` class from the `neo4py`.

<br>

```
from neo4py.neo4py import Graph
```

<br>


3. Create a `graph` object and pass your __URI__, and __connection details__ to the `Graph` constructor.

<br>

```
graph = Graph("connection_uri",("user","db_password"))
```
<br>

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

<br>

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.

<br>


4. Now make a __python dictionary__, pass the data to it, and run and write the query by using built-in __run method__.

<br>

```
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.😊

<br>

Special Thanks to [Aaron Moffatt](https://pypi.org/user/AaronM/) for letting me acquire the name, __"neo4py"__

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "neo4py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "neo4j, alternative, neo4py, py2neo, graph database",
    "author": null,
    "author_email": "Athar Naveed <asphaltlegends24@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/69/6f/f92b02e5a88fdc9a67f7c007bef2bf01949afbd790044e518742067b33d9/neo4py-1.1.5.tar.gz",
    "platform": null,
    "description": "## Neo4py\nA proper documentation to __neo4py__ is available [here](https://neo4pydocs.vercel.app/).\n## Introduction\nNeo4py is an alternative to __py2neo__. I am trying my best to make it a perfect and better clone of the py2neo package.\n\n### How to run a query in neo4py\nAs 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. \n\nThese are the steps you can use to execute a query in neo4py:\n\n<br>\n\n1. First install `neo4py` using either __pip__ or __uv__.\n\n```\npip install neo4py\n\n# or you can use uv for this\n\nuv pip install neo4py\n```\n\n<br>\n\n2. Import the `Graph` class from the `neo4py`.\n\n<br>\n\n```\nfrom neo4py.neo4py import Graph\n```\n\n<br>\n\n\n3. Create a `graph` object and pass your __URI__, and __connection details__ to the `Graph` constructor.\n\n<br>\n\n```\ngraph = Graph(\"connection_uri\",(\"user\",\"db_password\"))\n```\n<br>\n\n```\n# Example code\ngraph = Graph(\"bolt://localhost:7687\",(\"neo4j\",\"12345678\"))\n```\n\n<br>\n\nYou can find your connection uri and user details, when you'll start your database and open __neo4j browser__. \n__Password__ is the password that you have set while creating the database.\n\n<br>\n\n\n4. Now make a __python dictionary__, pass the data to it, and run and write the query by using built-in __run method__.\n\n<br>\n\n```\ndata = {\n    \"name\" : \"John Doe\",\n    \"age\": 21\n}\nnode = graph.run(\"CREATE (p:Person {name:$name,age:$age})\", **data)\n\n```\n\n\n### Final Words\nFor any issues, please open an issue.\nI am open for suggesstions, contributions, and collaborations.\ud83d\ude0a\n\n<br>\n\nSpecial Thanks to [Aaron Moffatt](https://pypi.org/user/AaronM/) for letting me acquire the name, __\"neo4py\"__\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Neo4py is a better alternative to py2neo.",
    "version": "1.1.5",
    "project_urls": {
        "Homepage": "https://github.com/Athar-Naveed/neo4py"
    },
    "split_keywords": [
        "neo4j",
        " alternative",
        " neo4py",
        " py2neo",
        " graph database"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c9f8eba14e9ced09a624c0d4a6266b283b867cf2bbf8bdcf81d5582da22cbba",
                "md5": "d9dff1e578c0de41a1d3996c9ade5b77",
                "sha256": "459fdeb2d97cb69d8e985f374e2888a8fc4b557039479c82f8c30e6f389d97a3"
            },
            "downloads": -1,
            "filename": "neo4py-1.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d9dff1e578c0de41a1d3996c9ade5b77",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9866,
            "upload_time": "2024-08-22T12:31:14",
            "upload_time_iso_8601": "2024-08-22T12:31:14.657569Z",
            "url": "https://files.pythonhosted.org/packages/1c/9f/8eba14e9ced09a624c0d4a6266b283b867cf2bbf8bdcf81d5582da22cbba/neo4py-1.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "696ff92b02e5a88fdc9a67f7c007bef2bf01949afbd790044e518742067b33d9",
                "md5": "4a16834119e85b6d64957f4f8b5ff7a0",
                "sha256": "ed0d80f6569b2888a41c5a7ce27116a821d1a0365d82f1d8370b22d5d01c277c"
            },
            "downloads": -1,
            "filename": "neo4py-1.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "4a16834119e85b6d64957f4f8b5ff7a0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 9725,
            "upload_time": "2024-08-22T12:31:22",
            "upload_time_iso_8601": "2024-08-22T12:31:22.661386Z",
            "url": "https://files.pythonhosted.org/packages/69/6f/f92b02e5a88fdc9a67f7c007bef2bf01949afbd790044e518742067b33d9/neo4py-1.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-22 12:31:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Athar-Naveed",
    "github_project": "neo4py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "neo4py"
}
        
Elapsed time: 0.32080s