Skip to content

Commit 7f2c0c8

Browse files
committed
Merge remote-tracking branch 'mvexel/master' into feature/queries
2 parents 74f62b2 + 8ffa755 commit 7f2c0c8

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The module is not on PyPi yet.
1313
## Use it
1414

1515
```python
16-
>>> from overpass import Overpass
17-
>>> api = Overpass.API()
16+
>>> import overpass
17+
>>> api = overpass.API()
1818
>>> response = api.Get('node["name"="Salt Lake City"]')
1919
```
2020

@@ -36,15 +36,15 @@ The API takes a few parameters:
3636
The default endpoint is `http://overpass-api.de/api/interpreter` but you can pass in the rambler instance (`http://overpass.osm.rambler.ru/cgi/interpreter`) or your own:
3737

3838
```python
39-
api = Overpass.API(endpoint=http://overpass.myserver/interpreter)
39+
api = overpass.API(endpoint=http://overpass.myserver/interpreter)
4040
```
4141

4242
#### `timeout`
4343

4444
The default timeout is 25 seconds, but you can set it to whatever you want.
4545

4646
```python
47-
api = Overpass.API(timeout=600)
47+
api = overpass.API(timeout=600)
4848
```
4949

5050
#### `debug`

overpass/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- coding: utf-8 -*-
2+
3+
"""Thin wrapper around the OpenStreetMap Overpass API."""
4+
5+
__title__ = 'overpass'
6+
__version__ = '0.0.1'
7+
__license__ = 'Apache 2.0'
8+
9+
from .api import API
File renamed without changes.

test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from overpass import Overpass
1+
import overpass
22

33

44
class TestAPI:
55

66
def test_initialize_api(self):
7-
api = Overpass.API()
8-
assert isinstance(api, Overpass.API)
7+
api = overpass.API()
8+
assert isinstance(api, overpass.API)
99
assert api.debug == False

0 commit comments

Comments
 (0)