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 aUserobject 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
prvosm-1.0.2-py3-none-any.whl
(18.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e672611066c8d13e902b8304ce737ab9f227a4b5de6b2e42922d09ef2b21d4
|
|
| MD5 |
ac824cbc226458fa91fe73c4c5733f3c
|
|
| BLAKE2b-256 |
73bdd12541fad98813ca2b50409825e08d0b4378a8d2a06bc96a96044a16dc74
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee439f38fd1a02e5b69e263e63fe52cced18aa4517d738809ae43af8e317713e
|
|
| MD5 |
3ab561625cfdd9752a323c4f864aa199
|
|
| BLAKE2b-256 |
16917bec337384a56228854cae30dadf8f2669b69799cdf8b2a82a9ef155be3c
|