Debian Codegraph @

examples/changesets.py

raw
1 import osmapi
2 from pprint import pprint
3
4 api = osmapi.OsmApi(api="https://api06.dev.openstreetmap.org")
5
6
7 try:
8 api.changeset_get(111111111111)
9 except osmapi.ApiError as e:
10 print(f"Error: {e}")
11 if e.status == 404:
12 print("Changeset not found")
13
14
15 print("")
16 pprint(api.changeset_get(12345))