Questions tagged [pyarango]

Python Object Wrapper for ArangoDB with built-in validation

Python Object Wrapper for ArangoDB with built-in validation https://pyarango.readthedocs.io

44 questions
5
votes
1 answer

graph plot API for ArangoDB pyArango

I am using ArangoDB community edition, I can query on a created graph in AQL and get results in JSON which is graphically visualized on ArangoDB web interface tool. AQL Query FOR v,e,p IN 1..3 OUTBOUND 'germanCity/Hamburg' GRAPH 'routeplanner'…
Morse
  • 8,258
  • 7
  • 39
  • 64
5
votes
2 answers

Best way to import bulk data into ArangoDB

I'm currently working on an ArangoDB POC. I find that the time taken for document creation is very high in ArangoDB with PyArango. It takes about 5 minutes to insert 300 documents. I've pasted the rough code below, please let me know if there are…
pjesudhas
  • 399
  • 4
  • 13
3
votes
1 answer

Run Arango Shell (Arangosh) on a Kubernetes pod

I have set up an Arango instance on Kubernetes nodes, which were installed on a VM, as mentioned in the ArangoDB docs ArangoDB on Kubernetes. Keep in mind, I skipped the ArangoLocalStorage and ArangoDeploymentReplication step. I can see 3 pods each…
Arghya Dutta
  • 105
  • 1
  • 8
3
votes
1 answer

ArangoDB best way to get_or_create a document

I'm performing what I imagine is a common pattern with indexing graph databases: my data is a list of edges and I want to "stream" the upload of this data. I.e, for each edge, I want to create the two nodes on each side and then create the edge…
Neil
  • 3,020
  • 4
  • 25
  • 48
3
votes
1 answer

Python - How to create edges in ArangoDB

I am using pyArango to handle by database operations. I have already created a graph and now I want add an edge in the graph. So what are the methods from pyArango suitable for performing the mentioned task
Aditya Borde
  • 1,227
  • 2
  • 12
  • 31
2
votes
0 answers

ArangoDB export entire Graph to JSON

Is there a method for exporting an entire graph in ArangoDB to JSON? Collections work with arangoexport but not the whole graph. arangoexport --type json --graph-name templates --server.endpoint tcp://192.168.1.120:8123 --server.username root…
Qohelet
  • 1,459
  • 4
  • 24
  • 41
2
votes
1 answer

pyArango vs. Foxx Microservices

What is the major difference between using pyArango and Foxx Micro-service? As I saw we we are eventually writing the AQL in the .js file when creating the micro-service. How does it differ from writing into pyArango client? What are the advantage…
Aman Dalmia
  • 83
  • 2
  • 9
2
votes
1 answer

pyArango - create edge with specified _key

I have a graph in ArangoDB. How to create edge with specified _key value? My code: edge_attributes = {"_key": "ab", "count": 0} graph.createEdge(collection_edges_name, node_from_id, node_to_id, edge_attributes) I can see proper values of count as…
wind
  • 892
  • 1
  • 11
  • 27
2
votes
0 answers

I am looking for a site similar to 'Django Admin' that works with a No-sql database such as ArangoDB

This is a fairly advanced question, but looking for help here. My goal is how to get a generic object manager site (like django-admin) working for ArangoDB and I'm looking for a good answer on how to achieve that. I absolutely love the Django-Admin…
Dirk R
  • 602
  • 7
  • 14
2
votes
1 answer

KeyError: "There's no child of Graph by the name of: collection name"

while creating a graph, I am seeing this error. How to define the child of a collection or graph?
user1973987
  • 23
  • 1
  • 5
2
votes
1 answer

How do I get a collection object in pyarango?

I can get a database object with the code: import pyArango.database as DAT db = DAT.Database(connection, dbName) and according to the documentation, I can get a collection with the code: import pyArango.collection as COL collection =…
Matt Smith
  • 174
  • 2
  • 14
2
votes
2 answers

ArangoDB- duplicate edges

I am using pyArango to create edges between two documents using the function Graph.createEdge() The problem I am facing is that ArangoDB allows to create duplicate edges with the same _to, _from pair. How to avoid this situation in ArangoDB
Aditya Borde
  • 1,227
  • 2
  • 12
  • 31
1
vote
1 answer

Update document with pyarango

I have an existing arango document that I get from a key: doc = collection[key] I used to update using: for key, value in new_data.item(): doc[key] = value doc.save() Sometime, new_data has an empty field and I want to remove this field from…
Cyrille
  • 13,905
  • 2
  • 22
  • 41
1
vote
1 answer

Call ArangoDB docker container from a python script container fails

I have a python script that I dockerized, inside the script i make a call to ArangoDB. I have another container running an ArangoDB image. When i run both containers, I'm able to access ArangoDB on my localhost and if I run my python script from…
1
vote
0 answers

Can't switch to other databases via ArangoDB Web interface when I am using ArangoDB Docker

I started two containers via a bridge as follows: docker network create -d bridge my-net docker run --name arangodb -p 8529:8529 -e ARANGO_ROOT_PASSWORD=openSesame --network=my-net -d arangodb/arangodb:3.6.5 docker run --name arangodb-client…
AMM
  • 37
  • 1
  • 6
1
2 3