Skip to main content

Preben OSM's Library (prvosm)

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.0.tar.gz (12.9 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.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prvosm-1.0.0.tar.gz
  • Upload date:
  • Size: 12.9 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.0.tar.gz
Algorithm Hash digest
SHA256 0366cf6fe133f8f55d5c840e4d5ea0204011b34e472d363a422bcfc702531ce3
MD5 6922a9d566bab8c6bfcf5bdd6962841c
BLAKE2b-256 c3a2148826fa72d6fb0fd14715ba1996ece17ec8cb5e665e0492d33737249506

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prvosm-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77b02732f2e1a394b088586bbec68eaa5a2eec15cb59efcb973ad31f6c20674a
MD5 926a88b11f7779554e21092f35a6fc2b
BLAKE2b-256 fba6f13b118c6eca1008083336ffc59fb901a9523d8166413f8e76301711e56a

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.2

2 files

1.0.1

2 files

This release

1.0.0 This release

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