Skip to content

Commit

Permalink
doc(README): add citation suggestion
Browse files Browse the repository at this point in the history
bump version to 0.3.0

closes #122

---------

Co-authored-by: christina <[email protected]>
  • Loading branch information
SlowMo24 and redfrexx authored Dec 6, 2023
1 parent d2ee0a2 commit 289f4c5
Show file tree
Hide file tree
Showing 42 changed files with 123 additions and 99 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## 0.3.0

### Added

- support for python 3.12
Expand Down
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,28 @@ time = ['2018-01-01', '2018-02-01', '2018-03-01']
time = datetime.datetime(year=2018, month=3, day=1)
time = pandas.date_range("2018-01-01", periods=3, freq="M")
```
## Citation

When using [ohsome-py](https://github.com/GIScience/ohsome-py) e.g. for a publication or elsewhere, please cite the ohsome-api as described in their [citation recommendation](https://github.com/GIScience/ohsome-api/blob/master/README.md#how-to-cite) for example like

> M. Raifer, R. Troilo, F.-B. Mocnikand M. Schott, ‘OSHDB - OpenStreetMap History Data Analysis version 1.2.1 accessed via the ohsome-py library version 0.3.0’. Zenodo, Sep. 29, 2023. doi: 10.5281/zenodo.8391737.

```bibtex
@software{raifer_2023_7713347,
author = {Raifer, Martin and
Troilo, Rafael and
Mocnik, Franz-Benjamin and
Schott, Moritz},
title = {OSHDB - OpenStreetMap History Data Analysis version 1.2.1 accessed via the ohsome-py library version 0.3.0},
month = sep,
year = 2023,
publisher = {Zenodo},
version = {1.2.1},
doi = {10.5281/zenodo.8391737},
url = {https://doi.org/10.5281/zenodo.8391737}
}
```

## Contribution Guidelines

Expand All @@ -143,7 +165,7 @@ This package uses [poetry](https://python-poetry.org/) for dependency management

**Install the pre-commit hooks** in our local git repo before committing to ensure homogenous code style.

`poertry run pre-commit install`
`poetry run pre-commit install`

### Run Tests

Expand Down
2 changes: 1 addition & 1 deletion ohsome/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
DEFAULT_LOG = True
DEFAULT_LOG_DIR = Path("./ohsome_log")
# update version in pyproject.toml as well
OHSOME_VERSION = "0.2.0"
OHSOME_VERSION = "0.3.0"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -43,7 +43,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:51 GMT
- Wed, 06 Dec 2023 08:19:12 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -44,7 +44,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:51 GMT
- Wed, 06 Dec 2023 08:19:10 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:53 GMT
- Wed, 06 Dec 2023 08:19:12 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:55 GMT
- Wed, 06 Dec 2023 08:19:18 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
20 changes: 10 additions & 10 deletions ohsome/test/cassettes/test_client/test_format_bboxes_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:57 GMT
- Wed, 06 Dec 2023 08:19:19 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -70,7 +70,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -99,7 +99,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:57 GMT
- Wed, 06 Dec 2023 08:19:19 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -127,7 +127,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -156,7 +156,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:57 GMT
- Wed, 06 Dec 2023 08:19:21 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -184,7 +184,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -213,7 +213,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:58 GMT
- Wed, 06 Dec 2023 08:19:21 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -241,7 +241,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -270,7 +270,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:58 GMT
- Wed, 06 Dec 2023 08:19:22 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count/groupBy/boundary
response:
Expand Down Expand Up @@ -45,7 +45,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:53 GMT
- Wed, 06 Dec 2023 08:19:13 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
16 changes: 8 additions & 8 deletions ohsome/test/cassettes/test_client/test_format_bcircles_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:53 GMT
- Wed, 06 Dec 2023 08:19:13 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -70,7 +70,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count/groupBy/boundary
response:
Expand Down Expand Up @@ -102,7 +102,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:54 GMT
- Wed, 06 Dec 2023 08:19:15 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -130,7 +130,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -159,7 +159,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:54 GMT
- Wed, 06 Dec 2023 08:19:15 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -187,7 +187,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -216,7 +216,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:54 GMT
- Wed, 06 Dec 2023 08:19:17 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count/groupBy/boundary
response:
Expand Down Expand Up @@ -51,7 +51,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:55 GMT
- Wed, 06 Dec 2023 08:19:17 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
4 changes: 2 additions & 2 deletions ohsome/test/cassettes/test_client/test_format_bpolys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/elements/count
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:55 GMT
- Wed, 06 Dec 2023 08:19:18 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/contributions/latest/bbox
response:
Expand Down Expand Up @@ -50,7 +50,7 @@ interactions:
Content-disposition:
- attachment;filename=ohsome.geojson
Date:
- Wed, 29 Nov 2023 14:33:58 GMT
- Wed, 06 Dec 2023 08:19:22 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down Expand Up @@ -78,7 +78,7 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: POST
uri: https://api.ohsome.org/v1/contributions/latest/bbox
response:
Expand Down Expand Up @@ -115,7 +115,7 @@ interactions:
Content-disposition:
- attachment;filename=ohsome.geojson
Date:
- Wed, 29 Nov 2023 14:34:00 GMT
- Wed, 06 Dec 2023 08:19:24 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
4 changes: 2 additions & 2 deletions ohsome/test/cassettes/test_client/test_user_agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interactions:
Connection:
- keep-alive
user-agent:
- ohsome-py/0.2.0
- ohsome-py/0.3.0
method: GET
uri: https://api.ohsome.org/v1/metadata
response:
Expand Down Expand Up @@ -42,7 +42,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 29 Nov 2023 14:33:51 GMT
- Wed, 06 Dec 2023 08:19:10 GMT
Keep-Alive:
- timeout=5, max=100
Server:
Expand Down
Loading

0 comments on commit 289f4c5

Please sign in to comment.