Skip to content

Commit 37055eb

Browse files
authored
Merge pull request #99 from osmlab/dev
Merging dev -> master
2 parents ca8152e + 9a4c319 commit 37055eb

6 files changed

Lines changed: 11 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ Import the package:
3434
import maproulette
3535
```
3636

37+
import `json` for nice json printing:
38+
39+
```
40+
import json
41+
```
42+
3743
From there, create a configuration object. Depending on your use case, you may need to pass your API key. Specify
3844
that when you create your configuration. For example:
3945

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ This client makes it easy for users to communicate with the MapRoulette API from
2929
their Python environment. In the example below, we are able to access a MapRoulette project in just four lines of code:
3030

3131
>>> import maproulette
32-
>>> config = maproulette.Configuration()
33-
>>> api = maproulette.Api(config)
32+
>>> config = maproulette.Configuration(api_key='{YOUR_API_KEY}')
33+
>>> api = maproulette.Project(config)
3434
>>> api.get_project_by_id(4719)
3535
{'data': {'id': 4719, 'owner': 4785024, 'name': 'health_facilities_in_india',...}
3636

examples/challenge_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
).to_json()
5050

5151
# Adding example overpass QL input for challenge
52-
challenge_data.overpassQL = open('data/Example_OverpassQL_Query', 'r').read()
52+
challenge_data.overpassQL = open('data/Example_OverpassQL_Query.overpassql', 'r').read()
5353

5454
# Create challenge
5555
print(json.dumps(api.create_challenge(challenge_data)))
File renamed without changes.

maproulette/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
from .api.task import Task
1818
from .api.user import User
1919

20-
__version__ = '1.8.0'
20+
__version__ = '1.8.1'

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
requests==2.23.0
1+
requests==2.32.2
22
tox==3.14.5
33
sphinx==2.4.4
44
sphinx_rtd_theme

0 commit comments

Comments
 (0)