Skip to content

Commit 3f45b0f

Browse files
committed
Updated README and docs
1 parent 1456552 commit 3f45b0f

28 files changed

+50
-54
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Neo4j Bolt Driver for Python
33
****************************
44

5-
The Official Neo4j Driver for Python supports Neo4j 3.0 and above and Python versions 2.7, 3.4, 3.5 and 3.6.
5+
The official Neo4j driver for Python supports Neo4j 3.0 and above and Python versions 2.7, 3.4, 3.5, 3.6, and 3.7.
66

77

88
Quick Example
99
=============
1010

1111
.. code-block:: python
1212
13-
from neo4j.v1 import GraphDatabase
13+
from neo4j import GraphDatabase
1414
1515
driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "password"))
1616
@@ -38,13 +38,13 @@ To install the latest stable version, use:
3838

3939
.. code:: bash
4040
41-
pip install neo4j-driver
41+
pip install neo4j
4242
4343
For the most up-to-date version (generally unstable), use:
4444

4545
.. code:: bash
4646
47-
pip install git+https://github.com/neo4j/neo4j-python-driver.git#egg=neo4j-driver
47+
pip install git+https://github.com/neo4j/neo4j-python-driver.git#egg=neo4j
4848
4949
5050
Other Information

docs/source/driver.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Construction
1212

1313
:class:`.Driver` construction can either be carried out directly or via a `classmethod` on the :class:`.GraphDatabase` class.
1414

15-
.. autoclass:: neo4j.v1.GraphDatabase
15+
.. autoclass:: neo4j.GraphDatabase
1616
:members:
1717

18-
.. autoclass:: neo4j.v1.Driver(uri, **config)
18+
.. autoclass:: neo4j.Driver(uri, **config)
1919
:members:
2020

2121

@@ -42,7 +42,7 @@ This may be a standalone server or could be a specific member of a cluster.
4242

4343
Connections established by a :class:`.DirectDriver` are always made to the exact host and port detailed in the URI.
4444

45-
.. autoclass:: neo4j.v1.DirectDriver
45+
.. autoclass:: neo4j.DirectDriver
4646
:members:
4747
:inherited-members:
4848

@@ -55,7 +55,7 @@ URI scheme:
5555
Driver subclass:
5656
:class:`.RoutingDriver`
5757

58-
.. autoclass:: neo4j.v1.RoutingDriver
58+
.. autoclass:: neo4j.RoutingDriver
5959
:members:
6060
:inherited-members:
6161

@@ -72,9 +72,9 @@ An authentication token for the server.
7272
For basic auth, this can be a simple tuple, for example ``("neo4j", "password")``.
7373
Alternatively, one of the auth token functions can be used.
7474

75-
.. autofunction:: neo4j.v1.basic_auth
75+
.. autofunction:: neo4j.basic_auth
7676

77-
.. autofunction:: neo4j.v1.custom_auth
77+
.. autofunction:: neo4j.custom_auth
7878

7979
``encrypted``
8080
-------------
@@ -88,14 +88,14 @@ Defaults to :py:const:`True` if TLS is available.
8888
The trust level for certificates received from the server during TLS negotiation.
8989
This setting does not have any effect if ``encrypted`` is set to :py:const:`False`.
9090

91-
.. py:attribute:: neo4j.v1.TRUST_ALL_CERTIFICATES
91+
.. py:attribute:: neo4j.TRUST_ALL_CERTIFICATES
9292
9393
Trust any server certificate (default). This ensures that communication
9494
is encrypted but does not verify the server certificate against a
9595
certificate authority. This option is primarily intended for use with
9696
the default auto-generated server certificate.
9797

98-
.. py:attribute:: neo4j.v1.TRUST_SYSTEM_CA_SIGNED_CERTIFICATES
98+
.. py:attribute:: neo4j.TRUST_SYSTEM_CA_SIGNED_CERTIFICATES
9999
100100
Trust server certificates that can be verified against the system
101101
certificate authority. This option is primarily intended for use with
@@ -173,7 +173,7 @@ For example:
173173

174174
.. code-block:: python
175175
176-
from neo4j.v1 import GraphDatabase
176+
from neo4j import GraphDatabase
177177
178178
class Application(object):
179179

docs/source/errors.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
Errors
33
******
44

5-
6-
.. autoclass:: neo4j.exceptions.AddressError
7-
:members:
8-
95
.. autoclass:: neo4j.exceptions.CypherError
106
:members:
117

docs/source/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
********************************
1+
**************************************
22
Neo4j Bolt Driver |version| for Python
3-
********************************
3+
**************************************
44

55
The Official Neo4j Driver for Python supports Neo4j 3.1 and above and requires Python version 2.7, 3.4, 3.5 or 3.6.
66

@@ -10,7 +10,7 @@ Quick Example
1010

1111
.. code-block:: python
1212
13-
from neo4j.v1 import GraphDatabase
13+
from neo4j import GraphDatabase
1414
1515
uri = "bolt://localhost:7687"
1616
driver = GraphDatabase.driver(uri, auth=("neo4j", "password"))
@@ -32,13 +32,13 @@ To install the latest stable version, use:
3232

3333
.. code:: bash
3434
35-
pip install neo4j-driver
35+
pip install neo4j
3636
3737
For the most up-to-date version (possibly unstable), use:
3838

3939
.. code:: bash
4040
41-
pip install git+https://github.com/neo4j/neo4j-python-driver.git#egg=neo4j-driver
41+
pip install git+https://github.com/neo4j/neo4j-python-driver.git#egg=neo4j
4242
4343
4444
API Documentation

docs/source/results.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ Each result consists of header metadata, zero or more :class:`.Record` objects a
99
Results also contain a buffer that automatically stores unconsumed records when results are consumed out of order.
1010
A :class:`.BoltStatementResult` is attached to an active connection, through a :class:`.Session`, until all its content has been buffered or consumed.
1111

12-
.. autoclass:: neo4j.v1.BoltStatementResult
12+
.. autoclass:: neo4j.BoltStatementResult
1313
:inherited-members:
1414
:members:
1515

16-
.. autoclass:: neo4j.v1.Record
16+
.. autoclass:: neo4j.Record
1717
:members:
1818

1919

2020
Summary Details
2121
---------------
2222

23-
.. autoclass:: neo4j.v1.result.BoltStatementResultSummary
23+
.. autoclass:: neo4j.BoltStatementResultSummary
2424
:members:
2525

26-
.. autoclass:: neo4j.v1.result.SummaryCounters
26+
.. autoclass:: neo4j.SummaryCounters
2727
:members:

docs/source/transactions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ Returning a live result object would prevent the driver from correctly managing
7575
7676
API
7777
===
78-
.. autoclass:: neo4j.v1.Session
78+
.. autoclass:: neo4j.Session
7979
:members:
8080

81-
.. autoclass:: neo4j.v1.Transaction
81+
.. autoclass:: neo4j.Transaction
8282
:members:

neo4j/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
from neobolt.util import Watcher
3030

31-
from .v1 import GraphDatabase
31+
from neo4j import GraphDatabase
3232
from neo4j.exceptions import CypherError
3333

3434

test/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from neobolt.util import Watcher
2525

26-
from neo4j.v1 import GraphDatabase, basic_auth
26+
from neo4j import GraphDatabase, basic_auth
2727

2828

2929
def update_password(user, password, new_password):

test/examples/auth_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# limitations under the License.
2020

2121
# tag::basic-auth-import[]
22-
from neo4j.v1 import GraphDatabase
22+
from neo4j import GraphDatabase
2323
# end::basic-auth-import[]
2424

2525

test/examples/base_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# See the License for the specific language governing permissions and
1919
# limitations under the License.
2020

21-
from neo4j.v1 import GraphDatabase
21+
from neo4j import GraphDatabase
2222

2323

2424
class BaseApplication(object):

0 commit comments

Comments
 (0)