Skip to main content

Preben OSM's Library (prvosm)

PyPI - Version License Release CI Documentation CI

A simple Python library that makes accessing data from the OSM API dead easy and convenient.

Features

  • Read-only OSM API access: I never really use Python to write anything to OSM, so a simple read-only API is all that I need, hence all that this library provides at the moment.
  • Object/type oriented: Instead of dealing with a bunch of nested dictionaries, everything is properly parsed into an object using Pydantic. Want to fetch the details for the user that made a changeset? Call changeset.fetch_user() and a User object is returned.
  • Easy geometries: OSM elements (nodes, ways, relations, notes) have functions and properties to get shapely geometries.
  • Cached: Following good practice, objects and responses are stored in a sqlite cache.
  • Almost all read end-points added: There are a handful that I haven't got around to implementing, but most are implemented.

Documentation

For documentation, roadmaps, etc. see prvinspace.github.io/prvosm/.

Maintainer

This library is maintained by Preben Vangberg. You can pop me a message on OSM, Discord or Matrix if there is anything.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prvosm-1.0.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

prvosm-1.0.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file prvosm-1.0.1.tar.gz.

File metadata

  • Download URL: prvosm-1.0.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for prvosm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e555f166018fadd547df886eee763ee44a8b9d030d1aea977eafc572d4b58ea7
MD5 fbc7270e41a0fe96315d328579d2097c
BLAKE2b-256 464f3db39a2449c81f21bc244352061ea393251cd5894bdc84c33466986081f1

See more details on using hashes here.

File details

Details for the file prvosm-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: prvosm-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for prvosm-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e561cb98cc1a9b93e584b9145c8035791be6b7e03bbd3d2d07d54906c7435d51
MD5 ba15533422697f5096e205c718d31e5f
BLAKE2b-256 5a3f1335a03784cdbda2eabfb854ef50b4594d87a175e528dcc93600485fb41e

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.2

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page