thin wrapper of https://wiki.openstreetmap.org/wiki/API
Project description
Replaced
See osm_easy_api
Original readme
This is intended as a minimal wrapper over OSM Editing API, to make easy to understand what is going on.
It contains thin wrapper only for parts that I needed so far.
Run tests
python3 -m unittest
Usage examples
Object history
import thin_osm_api_wrapper
import json
object_type = "way"
object_id = 10101010
data = thin_osm_api_wrapper.api.history_json(object_type, object_id)
print(json.dumps(data, indent=3))
List changesets
import thin_osm_api_wrapper
import json
data = thin_osm_api_wrapper.api.changeset_list_json()
print(json.dumps(data, indent=3))
closed_after = "2021-12-26"
created_before = "2021-12-27"
data = thin_osm_api_wrapper.api.changeset_list_json(closed_after=closed_after, created_before=created_before)
print(json.dumps(data, indent=3))
Related projects
See also osm_bot_abstraction_layer and osmapi for other Python wrappers of OSM editing API.
Sister of taginfo equivalent.
Contributing
PRs are welcome!
pypi
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file thin_osm_api_wrapper-0.0.4.tar.gz
.
File metadata
- Download URL: thin_osm_api_wrapper-0.0.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4910b76b93b3045069dc50845e0ea3875eadf47f40f0d056768a49975db5c0a |
|
MD5 | ecc4328cc25f3e0a0dcd76b1073f735e |
|
BLAKE2b-256 | 7061b5b6cf60ec99505dc70c2f9697a7cd017d90c06585cada6237c1b0e55bc5 |
File details
Details for the file thin_osm_api_wrapper-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: thin_osm_api_wrapper-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46c937b62eb7fa06f5fcd9054f5d1d5778e2b301ee61812ad67b1c9d435f3eb4 |
|
MD5 | cf6421f042184e74a402160b1a3357d2 |
|
BLAKE2b-256 | 67cf78758685d7e2d9ee620ac51050f2994a044382c70ed0ce6fda431c7d741b |