Skip to main content

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

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

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

thin_osm_api_wrapper-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

thin_osm_api_wrapper-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file thin_osm_api_wrapper-0.0.2.tar.gz.

File metadata

  • Download URL: thin_osm_api_wrapper-0.0.2.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

Hashes for thin_osm_api_wrapper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 55e4d3b801f7c49973b5eafc5b4516704e9ebd46cf165e52b06c84a8d7b78007
MD5 176594426c515ce550e639e38b5d93e4
BLAKE2b-256 daa206621a34c2cbcb82cc85cf0251567575956c44b00aad57f21f67763daf94

See more details on using hashes here.

File details

Details for the file thin_osm_api_wrapper-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for thin_osm_api_wrapper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a74f7942b5ec4f94b6836dddce7c35f46c7a470d9d63000e65505f890251b2a
MD5 a83fcc293bb6dce4fee9ee85a7d54adc
BLAKE2b-256 86188b54fda2952fac841adf7633398e45bfb23dd0577dd0d39283d4f0cec674

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page