@@ -21,7 +21,7 @@ sudo pip install python-arango
21
21
- Latest (Supports up to ArangoDB Version 2.7)
22
22
23
23
``` bash
24
- git clone https://github.com/Joowani/python-a .git
24
+ git clone https://github.com/Joowani/python-arango .git
25
25
cd python-arango
26
26
python2.7 setup.py install
27
27
```
@@ -289,13 +289,13 @@ my_db.graphs
289
289
# Create a new graph
290
290
my_graph = my_db.create_graph(" my_graph" )
291
291
292
- # Create new vertex collections to a graph
292
+ # Create new vertex collections for a graph
293
293
my_db.create_collection(" vcol01" )
294
294
my_db.create_collection(" vcol02" )
295
295
my_graph.create_vertex_collection(" vcol01" )
296
296
my_graph.create_vertex_collection(" vcol02" )
297
297
298
- # Create a new edge definition to a graph
298
+ # Create a new edge definition for a graph
299
299
my_db.create_collection(" ecol01" , is_edge = True )
300
300
my_graph.create_edge_definition(
301
301
edge_collection = " ecol01" ,
@@ -316,7 +316,7 @@ Vertex Management
316
316
-----------------
317
317
318
318
``` python
319
- # Create new vertices (again if "_key" is not given it's auto-generated)
319
+ # Create new vertices (if "_key" is not given it's auto-generated)
320
320
my_graph.create_vertex(" vcol01" , {" _key" : " v01" , " value" : 1 })
321
321
my_graph.create_vertex(" vcol02" , {" _key" : " v01" , " value" : 1 })
322
322
@@ -380,12 +380,12 @@ Batch Requests
380
380
--------------
381
381
382
382
``` python
383
- # NOTE : only CRUD methods for ( documents/vertices/edges) are supported
383
+ # NOTE : only CRUD methods for documents/vertices/edges are supported (WIP)
384
384
385
385
# Execute a batch request for managing documents
386
386
my_db.execute_batch([
387
387
(
388
- my_col.create_document, # method name
388
+ my_col.create_document, # method name
389
389
[{" _key" : " doc04" , " value" : 1 }], # args
390
390
{" wait_for_sync" : True } # kwargs
391
391
),
@@ -510,7 +510,10 @@ a.server_time
510
510
a.write_ahead_log
511
511
512
512
# Flush the write-ahead log
513
- a.flush_write_ahead_log(wait_for_sync = True , wait_for_gc = True )
513
+ a.flush_write_ahead_log(
514
+ wait_for_sync = True ,
515
+ wait_for_gc = True
516
+ )
514
517
515
518
# Configure the write-ahead log
516
519
a.set_write_ahead_log(
@@ -540,8 +543,10 @@ To Do
540
543
4 . Sharding
541
544
542
545
543
- Running Tests (requires ArangoDB on localhost)
546
+ Running Tests
544
547
----------------------------------------------
548
+ The tests create temporary databases and users.
549
+ If a test fails in the middle dummy elements should be cleaned up (WIP).
545
550
546
551
``` bash
547
552
nosetests-2.7 -v
0 commit comments