@@ -11,7 +11,7 @@ Driver for ArangoDB REST API
11
11
Overview
12
12
--------
13
13
14
- py-arango is a Python (2.7) driver for ArangoDB
14
+ py-arango is a Python (2.7, 3.4 ) driver for ArangoDB
15
15
(< https://www.arangodb.com/ > )
16
16
17
17
Documentation
@@ -25,13 +25,13 @@ Installation
25
25
- Stable
26
26
27
27
``` bash
28
- sudo pip install py-arango
28
+ sudo pip install py-arango
29
29
```
30
30
31
31
- Latest
32
32
33
33
``` bash
34
- git clone https://github.com/Joowani/py-arango.git
34
+ git clone https://github.com/Joowani/py-arango.git
35
35
cd py-arango
36
36
python2.7 setup.py install
37
37
```
@@ -244,17 +244,17 @@ Simple Queries (Collection-Specific)
244
244
245
245
``` python
246
246
# Return the first 5 documents in collection "my_col"
247
- my_col.first(5 )
247
+ my_col.first(5 )
248
248
249
249
# Return the last 3 documents
250
- my_col.last(3 )
250
+ my_col.last(3 )
251
251
252
252
# Return all documents (cursor generator object)
253
253
my_col.all()
254
254
list (my_col.all())
255
255
256
256
# Return a random document
257
- my_col.any()
257
+ my_col.any()
258
258
259
259
# Return first document whose "value" is 1
260
260
my_col.get_first_example({" value" : 1 })
@@ -263,15 +263,15 @@ my_col.get_first_example({"value": 1})
263
263
my_col.get_by_example({" value" : 1 })
264
264
265
265
# Update all documents whose "value" is 1 with a new attribute
266
- my_col.update_by_example(
266
+ my_col.update_by_example(
267
267
{" value" : 1 }, new_value = {" new_attr" : 1 }
268
268
)
269
269
270
270
# Return all documents within a radius around a given coordinate (requires geo-index)
271
271
my_col.within(latitude = 100 , longitude = 20 , radius = 15 )
272
272
273
273
# Return all documents near a given coordinate (requires geo-index)
274
- my_col.near(latitude = 100 , longitude = 20 )
274
+ my_col.near(latitude = 100 , longitude = 20 )
275
275
```
276
276
277
277
Graphs
0 commit comments