Skip to content

Commit 6b5cdf0

Browse files
committed
Merge pull request #14 from pontusmelke/versioned-api
Add versioning to API
2 parents f18b586 + 8c3aaf3 commit 6b5cdf0

File tree

15 files changed

+31
-15
lines changed

15 files changed

+31
-15
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Neo4j Bolt Driver for Python
44

55
.. code:: python
66
7-
from neo4j import GraphDatabase
7+
from neo4j.v1.session import GraphDatabase
88
driver = GraphDatabase.driver("bolt://localhost")
99
session = driver.session()
1010
session.run("CREATE (a:Person {name:'Bob'})")

example.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 import GraphDatabase
21+
from neo4j.v1.session import GraphDatabase
2222

2323
driver = GraphDatabase.driver("bolt://localhost")
2424
session = driver.session()

neo4j/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@
1818
# See the License for the specific language governing permissions and
1919
# limitations under the License.
2020

21-
22-
from .session import *
23-
from .typesystem import *

neo4j/v1/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env python
2+
# -*- encoding: utf-8 -*-
3+
4+
# Copyright (c) 2002-2015 "Neo Technology,"
5+
# Network Engine for Objects in Lund AB [http://neotechnology.com]
6+
#
7+
# This file is part of Neo4j.
8+
#
9+
# Licensed under the Apache License, Version 2.0 (the "License");
10+
# you may not use this file except in compliance with the License.
11+
# You may obtain a copy of the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS,
17+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
# See the License for the specific language governing permissions and
19+
# limitations under the License.

neo4j/__main__.py renamed to neo4j/v1/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
from __future__ import unicode_literals
2323

24+
import logging
2425
from argparse import ArgumentParser
2526
from json import loads as json_loads
26-
import logging
2727
from sys import stdout, stderr
2828

29-
from neo4j.session import GraphDatabase, CypherError
29+
from .session import GraphDatabase, CypherError
3030

3131

3232
class ColourFormatter(logging.Formatter):
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)