Skip to content

Commit e1473d6

Browse files
authored
Alpha release prep (#30)
* Changed version * Updated filename and readme * Updated readme
1 parent 22906a3 commit e1473d6

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

File renamed without changes.

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# MapRoulette - A Python Client for the MapRoulette API
22

3+
https://maproulette-python-client.readthedocs.io/
4+
35
This client makes it easy for users to communicate with the MapRoulette API from within
46
their Python environment. In the example below, we are able to access a MapRoulette project in just four lines of code:
57

68
```
79
>>> import maproulette
810
>>> config = maproulette.Configuration()
9-
>>> api = maproulette.Api(config)
11+
>>> api = maproulette.Project(config)
1012
>>> api.get_project_by_id(4719)
1113
{'data': {'id': 4719, 'owner': 4785024, 'name': 'health_facilities_in_india',...}
1214
```
@@ -35,15 +37,16 @@ that when you create your configuration. For example:
3537
config = maproulette.Configuration(api_key='{YOUR_API_KEY}')
3638
```
3739

38-
Once you have your configuration object, we can create our API object. This gives us access to all of the functionality
39-
in the MapRoulette package.
40+
Once you have your configuration object we can create an API object using one of several modules depending on the
41+
functionality that the user is looking for. For example, creating a Project object allows the user to interact with all
42+
of the project-related functionality in the MapRoulette package.
4043

4144
```
42-
api = maproulette.Api(config)
45+
api = maproulette.Project(config)
4346
```
4447

45-
Now we have access to the MapRoulette API methods. In the example below, I want to find a project by name using a search
46-
string:
48+
Now we have access to the MapRoulette Project API methods. In the example below, I want to find a project by name using
49+
a search string:
4750

4851
```
4952
# We want to fetch a project with name 'Health Facilities in India'

maproulette/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
from .api.task import Task
1313
from .api.user import User
1414

15-
__version__ = '1.0.0'
15+
__version__ = '0.1.0rc1'

0 commit comments

Comments
 (0)