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.5.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thin_osm_api_wrapper-0.0.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thin_osm_api_wrapper-0.0.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for thin_osm_api_wrapper-0.0.5.tar.gz
Algorithm Hash digest
SHA256 096dcfddae850958ee96a26f173505d87e157e2e5e4d9aedef3e3965aa1f7d53
MD5 fd5639b10ba306f14986a2d6e0775cfc
BLAKE2b-256 aae3b5e2ce5276f50cc38eb07954ff5881969a82b5c7ff787d67139144dfc4fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thin_osm_api_wrapper-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0e8734eb301e9115d63e3804cabc21697e724cde8d268826ccd5ffe46f155be6
MD5 84c13335fd812a015f7a80dc6eb51c97
BLAKE2b-256 1f8cac3de489aff044190bf08a38ce017ff7d03624ca94c6b8ccc4d7002bf255

See more details on using hashes here.

Supported by

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