Skip to content

Commit 85ebed6

Browse files
author
Joohwan Oh
committed
Update setup.py and readme
1 parent d873afc commit 85ebed6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Driver for ArangoDB REST API
1111
Overview
1212
--------
1313

14-
py-arango is a Python (2.7) driver for ArangoDB
14+
py-arango is a Python (2.7, 3.4) driver for ArangoDB
1515
(<https://www.arangodb.com/>)
1616

1717
Documentation
@@ -25,13 +25,13 @@ Installation
2525
- Stable
2626

2727
```bash
28-
sudo pip install py-arango
28+
sudo pip install py-arango
2929
```
3030

3131
- Latest
3232

3333
```bash
34-
git clone https://github.com/Joowani/py-arango.git
34+
git clone https://github.com/Joowani/py-arango.git
3535
cd py-arango
3636
python2.7 setup.py install
3737
```
@@ -244,17 +244,17 @@ Simple Queries (Collection-Specific)
244244

245245
```python
246246
# Return the first 5 documents in collection "my_col"
247-
my_col.first(5)
247+
my_col.first(5)
248248

249249
# Return the last 3 documents
250-
my_col.last(3)
250+
my_col.last(3)
251251

252252
# Return all documents (cursor generator object)
253253
my_col.all()
254254
list(my_col.all())
255255

256256
# Return a random document
257-
my_col.any()
257+
my_col.any()
258258

259259
# Return first document whose "value" is 1
260260
my_col.get_first_example({"value": 1})
@@ -263,15 +263,15 @@ my_col.get_first_example({"value": 1})
263263
my_col.get_by_example({"value": 1})
264264

265265
# Update all documents whose "value" is 1 with a new attribute
266-
my_col.update_by_example(
266+
my_col.update_by_example(
267267
{"value": 1}, new_value={"new_attr": 1}
268268
)
269269

270270
# Return all documents within a radius around a given coordinate (requires geo-index)
271271
my_col.within(latitude=100, longitude=20, radius=15)
272272

273273
# 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)
275275
```
276276

277277
Graphs

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
setup(
88
name="py-arango",
99
description="Python Driver for ArangoDB",
10-
version="1.1.1",
10+
version="1.2.0",
1111
author="Joohwan Oh",
1212
author_email="joowani88@gmail.com",
1313
url="https://github.com/Joowani/py-arango",

0 commit comments

Comments
 (0)