|
1 | 1 | *******************
|
2 | 2 | The Py2neo Handbook
|
3 | 3 | *******************
|
| 4 | +.. image:: https://img.shields.io/pypi/v/py2neo.svg |
| 5 | + :target: https://pypi.python.org/pypi/py2neo |
| 6 | + :alt: PyPI version |
| 7 | + |
| 8 | +.. image:: https://img.shields.io/pypi/dm/py2neo |
| 9 | + :target: https://pypi.python.org/pypi/py2neo |
| 10 | + :alt: PyPI Downloads |
| 11 | + |
| 12 | +.. image:: https://img.shields.io/github/license/technige/py2neo.svg |
| 13 | + :target: https://www.apache.org/licenses/LICENSE-2.0 |
| 14 | + :alt: License |
| 15 | + |
| 16 | +.. image:: https://coveralls.io/repos/github/technige/py2neo/badge.svg?branch=master |
| 17 | + :target: https://coveralls.io/github/technige/py2neo?branch=master |
| 18 | + :alt: Coverage Status |
| 19 | + |
4 | 20 |
|
5 | 21 | **Py2neo** is a client library and toolkit for working with Neo4j_ from within Python_ applications and from the command line.
|
6 | 22 | The library supports both Bolt and HTTP and provides a high level API, an OGM, admin tools, an interactive console, a Cypher lexer for Pygments, and many other bells and whistles.
|
7 | 23 |
|
8 | 24 | As of version 2021.1, Py2neo contains full support for routing, as exposed by a Neo4j cluster.
|
9 | 25 | This can be enabled using a ``neo4j://...`` URI or by passing ``routing=True`` to a :class:`.Graph` constructor.
|
10 | 26 |
|
| 27 | +Py2neo also provides support for the multi-database functionality added in Neo4j 4.0. |
| 28 | +More about this can be found in the documentation for the :class:`.Graph` class. |
| 29 | + |
11 | 30 | Remember to take a look at the full :ref:`release notes <Version 2021.1>` for version 2021.1.
|
12 | 31 |
|
13 | 32 |
|
| 33 | +Installation & Compatibility |
| 34 | +============================ |
| 35 | + |
| 36 | +To install the latest release of py2neo, simply use: |
| 37 | + |
| 38 | +.. code-block:: bash |
| 39 | +
|
| 40 | + $ pip install py2neo |
| 41 | +
|
| 42 | +The following versions of Python and Neo4j (all editions) are supported: |
| 43 | + |
| 44 | +.. list-table:: |
| 45 | + :header-rows: 1 |
| 46 | + |
| 47 | + * - Neo4j |
| 48 | + - Python 3.5+ |
| 49 | + - Python 2.7 and 3.4 |
| 50 | + * - 4.3 |
| 51 | + - |test-neo43-py35+| |
| 52 | + - |test-neo43-py27-py34| |
| 53 | + * - 4.2 |
| 54 | + - |test-neo42-py35+| |
| 55 | + - |test-neo42-py27-py34| |
| 56 | + * - 4.1 |
| 57 | + - |test-neo41-py35+| |
| 58 | + - |test-neo41-py27-py34| |
| 59 | + * - 4.0 |
| 60 | + - |test-neo40-py35+| |
| 61 | + - |test-neo40-py27-py34| |
| 62 | + * - 3.5 |
| 63 | + - |test-neo35-py35+| |
| 64 | + - |test-neo35-py27-py34| |
| 65 | + * - 3.4 |
| 66 | + - |test-neo34-py35+| |
| 67 | + - |test-neo34-py27-py34| |
| 68 | + |
| 69 | +Note that py2neo is developed and tested under **Linux** using standard CPython distributions. |
| 70 | +While other operating systems and Python distributions may work, support for these is not available. |
| 71 | + |
| 72 | + |
14 | 73 | Quick Example
|
15 | 74 | =============
|
16 | 75 |
|
@@ -39,36 +98,6 @@ Note that py2neo is developed on a rolling basis, so patches are not made to old
|
39 | 98 | Users will instead need to install the latest release to adopt bug fixes.
|
40 | 99 |
|
41 | 100 |
|
42 |
| -Installation |
43 |
| -============ |
44 |
| - |
45 |
| -To install the latest release of py2neo, simply use: |
46 |
| - |
47 |
| -.. code-block:: bash |
48 |
| -
|
49 |
| - $ pip install --upgrade py2neo |
50 |
| -
|
51 |
| -To install the latest stable code from the GitHub master branch, use: |
52 |
| - |
53 |
| -.. code-block:: bash |
54 |
| -
|
55 |
| - $ pip install git+https://github.com/technige/py2neo.git@master#egg=py2neo |
56 |
| -
|
57 |
| -
|
58 |
| -Requirements |
59 |
| -============ |
60 |
| - |
61 |
| -The following versions of Python and Neo4j (all editions) are supported: |
62 |
| - |
63 |
| -- Python 2.7 / 3.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9 |
64 |
| -- Neo4j 3.4 / 3.5 / 4.0 / 4.1 / 4.2 / 4.3 (the latest point release of each version is recommended) |
65 |
| - |
66 |
| -Py2neo provides support for the multi-database functionality added in Neo4j 4.0. |
67 |
| -More about this can be found in the documentation for the :class:`.Graph` class. |
68 |
| - |
69 |
| -Note that Py2neo is developed and tested under **Linux** using standard CPython distributions. |
70 |
| -While other operating systems and Python distributions may work, support for these is not available. |
71 |
| - |
72 | 101 | Core Graph API
|
73 | 102 | ==============
|
74 | 103 |
|
@@ -150,3 +179,52 @@ Command Line Tools
|
150 | 179 | .. _pip: https://pip.pypa.io/
|
151 | 180 | .. _Python: https://www.python.org/
|
152 | 181 | .. _Causal Clustering: https://neo4j.com/docs/operations-manual/current/clustering/
|
| 182 | + |
| 183 | + |
| 184 | +.. |test-neo43-py27-py34| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo43-py27-py34 |
| 185 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo43-py27-py34" |
| 186 | + :alt: GitHub workflow status for tests against Neo4j 4.3 using py27/py34 |
| 187 | + |
| 188 | +.. |test-neo43-py35+| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo43-py35+ |
| 189 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo43-py35+" |
| 190 | + :alt: GitHub workflow status for tests against Neo4j 4.3 using py35+ |
| 191 | + |
| 192 | +.. |test-neo42-py27-py34| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo42-py27-py34 |
| 193 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo42-py27-py34" |
| 194 | + :alt: GitHub workflow status for tests against Neo4j 4.2 using py27/py34 |
| 195 | + |
| 196 | +.. |test-neo42-py35+| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo42-py35+ |
| 197 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo42-py35+" |
| 198 | + :alt: GitHub workflow status for tests against Neo4j 4.2 using py35+ |
| 199 | + |
| 200 | +.. |test-neo41-py27-py34| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo41-py27-py34 |
| 201 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo41-py27-py34" |
| 202 | + :alt: GitHub workflow status for tests against Neo4j 4.1 using py27/py34 |
| 203 | + |
| 204 | +.. |test-neo41-py35+| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo41-py35+ |
| 205 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo41-py35+" |
| 206 | + :alt: GitHub workflow status for tests against Neo4j 4.1 using py35+ |
| 207 | + |
| 208 | +.. |test-neo40-py27-py34| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo40-py27-py34 |
| 209 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo40-py27-py34" |
| 210 | + :alt: GitHub workflow status for tests against Neo4j 4.0 using py27/py34 |
| 211 | + |
| 212 | +.. |test-neo40-py35+| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo40-py35+ |
| 213 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo40-py35+" |
| 214 | + :alt: GitHub workflow status for tests against Neo4j 4.0 using py35+ |
| 215 | + |
| 216 | +.. |test-neo35-py27-py34| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo35-py27-py34 |
| 217 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo35-py27-py34" |
| 218 | + :alt: GitHub workflow status for tests against Neo4j 3.5 using py27/py34 |
| 219 | + |
| 220 | +.. |test-neo35-py35+| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo35-py35+ |
| 221 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo35-py35+" |
| 222 | + :alt: GitHub workflow status for tests against Neo4j 3.5 using py35+ |
| 223 | + |
| 224 | +.. |test-neo34-py27-py34| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo34-py27-py34 |
| 225 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo34-py27-py34" |
| 226 | + :alt: GitHub workflow status for tests against Neo4j 3.4 using py27/py34 |
| 227 | + |
| 228 | +.. |test-neo34-py35+| image:: https://img.shields.io/github/workflow/status/technige/py2neo/test-neo34-py35+ |
| 229 | + :target: https://github.com/technige/py2neo/actions?query=workflow%3A"test-neo34-py35+" |
| 230 | + :alt: GitHub workflow status for tests against Neo4j 3.4 using py35+ |
0 commit comments