Skip to content

Commit

Permalink
Merge pull request #99 from osmlab/dev
Browse files Browse the repository at this point in the history
Merging dev -> master
  • Loading branch information
mattmanley authored Jun 20, 2024
2 parents ca8152e + 9a4c319 commit 37055eb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Import the package:
import maproulette
```

import `json` for nice json printing:

```
import json
```

From there, create a configuration object. Depending on your use case, you may need to pass your API key. Specify
that when you create your configuration. For example:

Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ This client makes it easy for users to communicate with the MapRoulette API from
their Python environment. In the example below, we are able to access a MapRoulette project in just four lines of code:

>>> import maproulette
>>> config = maproulette.Configuration()
>>> api = maproulette.Api(config)
>>> config = maproulette.Configuration(api_key='{YOUR_API_KEY}')
>>> api = maproulette.Project(config)
>>> api.get_project_by_id(4719)
{'data': {'id': 4719, 'owner': 4785024, 'name': 'health_facilities_in_india',...}

Expand Down
2 changes: 1 addition & 1 deletion examples/challenge_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
).to_json()

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

# Create challenge
print(json.dumps(api.create_challenge(challenge_data)))
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion maproulette/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
from .api.task import Task
from .api.user import User

__version__ = '1.8.0'
__version__ = '1.8.1'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests==2.23.0
requests==2.32.2
tox==3.14.5
sphinx==2.4.4
sphinx_rtd_theme

0 comments on commit 37055eb

Please sign in to comment.