Skip to content

matkoniecz/thin_osm_api_python_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

See https://pypi.org/project/thin-osm-api-wrapper/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published