diff --git a/www/art b/www/art deleted file mode 120000 index db34f77a..00000000 --- a/www/art +++ /dev/null @@ -1 +0,0 @@ -../art/ \ No newline at end of file diff --git a/www/favicon.ico b/www/favicon.ico deleted file mode 120000 index e9eebd38..00000000 --- a/www/favicon.ico +++ /dev/null @@ -1 +0,0 @@ -art/py2neo.ico \ No newline at end of file diff --git a/www/index.html b/www/index.html deleted file mode 100644 index 43882b63..00000000 --- a/www/index.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - py2neo - - - - - - - - - - - - - - - -
- -
-

- py2neo logo -

-
- -

- Py2neo is a versatile client library and toolkit for working with Neo4j from within Python applications and from the command line. - 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. -

- -

- As of version 2021.1, py2neo contains full support for routing, as exposed by a Neo4j cluster. - This can be enabled using a neo4j://... URI or by passing routing=True to a Graph constructor. -

- -
$ pip install py2neo
-
- - - -
- PyPI project page - Latest release - Latest docs - Twitter - - - Source code -
- - -

Code Examples

- -
- -
-
>>> from py2neo import Graph, Node, Relationship
->>> g = Graph("neo4j://localhost:7687", auth=("neo4j", "badtiger"))
->>> a = Node("Person", name="Alice")
->>> b = Node("Person", name="Bob")
->>> KNOWS = Relationship.type("KNOWS")
->>> g.create(a | KNOWS(a, b) | b)
->>> list(g.relationships.match(r_type="KNOWS"))
-[KNOWS(Node('Person', name='Alice'), Node('Person', name='Bob'))]
-
-
- -
-
>>> from py2neo import Graph
->>> g = Graph("neo4j://localhost:7687", auth=("neo4j", "badtiger"))
->>> g.update("CREATE (:Person {name: $names[0]})-[:KNOWS]->(:Person {name: $names[1]})", {"names": ["Alice", "Bob"]})
->>> g.query("MATCH (a:Person)-[:KNOWS]->(b:Person) RETURN a.name, b.name")
- a.name | b.name
---------|--------
- Alice  | Bob
-
-
- -
-
>>> from py2neo.ogm import Repository, Model, Property, RelatedTo
->>> repo = Repository("neo4j://localhost:7687", auth=("neo4j", "badtiger"))
->>> class Person(Model):
-...     __primarykey__ = "name"
-...     name = Property()
-...     knows = RelatedTo("Person")
-...     def __init__(self, name):
-...         self.name = name
-...
->>> a = Person("Alice")
->>> b = Person("Bob")
->>> a.knows.add(b)
->>> repo.save(a, b)
->>> list(repo.get(Person, "Alice").knows.triples())
-[(<Person name='Alice'>, ('KNOWS', {}), <Person name='Bob'>)]
-
-
- -
-
>>> from py2neo import Graph
->>> from py2neo.bulk import create_nodes, create_relationships
->>> g = Graph("neo4j://localhost:7687", auth=("neo4j", "badtiger"))
->>> create_nodes(g.auto(), [{"name": "Alice"}, {"name": "Bob"}], labels={"Person"})
->>> create_relationships(g.auto(), [("Alice", {}, "Bob")], "KNOWS", start_node_key=("Person", "name"), end_node_key=("Person", "name"))
->>> list(g.relationships.match(r_type="KNOWS"))
-[KNOWS(Node('Person', name='Alice'), Node('Person', name='Bob'))]
-
-
- -
- - - -
- -