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.2.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.2-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prvosm-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 09e672611066c8d13e902b8304ce737ab9f227a4b5de6b2e42922d09ef2b21d4
MD5 ac824cbc226458fa91fe73c4c5733f3c
BLAKE2b-256 73bdd12541fad98813ca2b50409825e08d0b4378a8d2a06bc96a96044a16dc74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prvosm-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee439f38fd1a02e5b69e263e63fe52cced18aa4517d738809ae43af8e317713e
MD5 3ab561625cfdd9752a323c4f864aa199
BLAKE2b-256 16917bec337384a56228854cae30dadf8f2669b69799cdf8b2a82a9ef155be3c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

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