Skip to content

Commit 83a69c5

Browse files
committed
Merge pull request #26 from joowani/develop
Develop
2 parents ffb69ae + 402359c commit 83a69c5

34 files changed

+548
-401
lines changed

README.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,14 @@ To install a stable version from PyPi_:
5656

5757
.. code-block:: bash
5858
59-
pip install python-arango
59+
~$ pip install python-arango
6060
6161
6262
To install the latest version directly from GitHub_:
6363

6464
.. code-block:: bash
6565
66-
git clone https://github.com/joowani/python-arango.git
67-
cd python-arango
68-
python setup.py install
66+
~$ pip install -e git+git@github.com:joowani/python-arango.git@master#egg=python-arango
6967
7068
You may need to use ``sudo`` depending on your environment setup.
7169

arango/aql.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def explain(self, query, all_plans=False, max_plans=None, opt_rules=None):
4545
"""Inspect the query and return its metadata.
4646
4747
:param query: the query to inspect
48-
:type query: str
48+
:type query: str | unicode
4949
:param all_plans: if ``True`` all possible execution plans are
5050
returned, otherwise only the optimal one is returned
5151
:type all_plans: bool
@@ -82,7 +82,7 @@ def validate(self, query):
8282
"""Validate the query.
8383
8484
:param query: the query to validate
85-
:type query: str
85+
:type query: str | unicode
8686
:returns: whether the validation was successful
8787
:rtype: bool
8888
:raises arango.exceptions.AQLQueryValidateError: if the query cannot be
@@ -110,7 +110,7 @@ def execute(self, query, count=False, batch_size=None, ttl=None,
110110
"""Execute the query and return the result cursor.
111111
112112
:param query: the AQL query to execute
113-
:type query: str
113+
:type query: str | unicode
114114
:param count: whether the document count should be returned
115115
:type count: bool
116116
:param batch_size: maximum number of documents in one round trip
@@ -186,9 +186,9 @@ def create_function(self, name, code):
186186
"""Create a new AQL function.
187187
188188
:param name: the name of the new AQL function to create
189-
:type name: str
189+
:type name: str | unicode
190190
:param code: the definition of the function in Javascript
191-
:type code: str
191+
:type code: str | unicode
192192
:returns: whether the AQL function was created successfully
193193
:rtype: bool
194194
:raises arango.exceptions.AQLFunctionCreateError: if the AQL function
@@ -218,7 +218,7 @@ def delete_function(self, name, group=None, ignore_missing=False):
218218
including any namespaces.
219219
220220
:param name: the name of the AQL function to delete
221-
:type name: str
221+
:type name: str | unicode
222222
:param group: treat the name as a namespace prefix
223223
:type group: bool
224224
:param ignore_missing: ignore missing functions
@@ -279,7 +279,7 @@ def configure(self, mode=None, limit=None):
279279
"""Configure the AQL query cache.
280280
281281
:param mode: the operation mode (``"off"``, ``"on"`` or ``"demand"``)
282-
:type mode: str
282+
:type mode: str | unicode
283283
:param limit: the maximum number of results to be stored
284284
:type limit: int
285285
:returns: the result of the operation

arango/async.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def collection(self, name):
9090
a fire-and-forget style.
9191
9292
:param name: the name of the collection
93-
:type name: str
93+
:type name: str | unicode
9494
:returns: the collection object
9595
:rtype: arango.collections.Collection
9696
"""
@@ -104,7 +104,7 @@ def graph(self, name):
104104
style.
105105
106106
:param name: the name of the graph
107-
:type name: str
107+
:type name: str | unicode
108108
:returns: the graph object
109109
:rtype: arango.graph.Graph
110110
"""
@@ -119,7 +119,7 @@ class AsyncJob(object):
119119
:param connection: ArangoDB database connection
120120
:type connection: arango.connection.Connection
121121
:param job_id: the ID of the async job
122-
:type job_id: str
122+
:type job_id: str | unicode
123123
:param handler: the response handler
124124
:type handler: callable
125125
"""
@@ -137,7 +137,7 @@ def id(self):
137137
"""Return the ID of the async job.
138138
139139
:returns: the ID of the async job
140-
:rtype: str
140+
:rtype: str | unicode
141141
"""
142142
return self._id
143143

@@ -147,7 +147,7 @@ def status(self):
147147
:returns: the status of the async job, which can be ``"pending"`` (the
148148
job is still in the queue), ``"done"`` (the job finished or raised
149149
an exception)
150-
:rtype: str
150+
:rtype: str | unicode
151151
:raises arango.exceptions.AsyncJobStatusError: if the status of the
152152
async job cannot be retrieved from the server
153153
"""

arango/batch.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def id(self):
6565
"""Return the UUID of the batch request.
6666
6767
:return: the UUID of the batch request
68-
:rtype: str
68+
:rtype: str | unicode
6969
"""
7070
return self._id
7171

@@ -187,7 +187,7 @@ def collection(self, name):
187187
and committed as a whole in a single HTTP call to the ArangoDB server.
188188
189189
:param name: the name of the collection
190-
:type name: str
190+
:type name: str | unicode
191191
:returns: the collection object
192192
:rtype: arango.collections.Collection
193193
"""
@@ -200,7 +200,7 @@ def graph(self, name):
200200
and committed as a whole in a single HTTP call to the ArangoDB server.
201201
202202
:param name: the name of the graph
203-
:type name: str
203+
:type name: str | unicode
204204
:returns: the graph object
205205
:rtype: arango.graph.Graph
206206
"""
@@ -226,7 +226,7 @@ def id(self):
226226
"""Return the UUID of the batch job.
227227
228228
:return: the UUID of the batch job
229-
:rtype: str
229+
:rtype: str | unicode
230230
"""
231231
return self._id
232232

@@ -249,7 +249,7 @@ def status(self):
249249
:returns: the batch job status, which can be ``"pending"`` (the job is
250250
still waiting to be committed), ``"done"`` (the job completed) or
251251
``"error"`` (the job raised an exception)
252-
:rtype: str
252+
:rtype: str | unicode
253253
"""
254254
return self._status
255255

0 commit comments

Comments
 (0)