Python bindings for libosmium
BSD-2-CLAUSE License
Bot releases are hidden (Show)
This is the last version to support overwriting ReplicationServer.open_url()
. Use new ReplicationServer.set_request_parameter() function instead.
Published by lonvia over 1 year ago
This release brings a major rewrite of the libosmium wrapper code. Access to libosmium objects and functions now goes through thin proxy objects which make sure that the underlying data buffers are still accessible. This replaces the check for reference counters which has caused a lot of cryptic errors. Users are still not allowed to keep references to data received in the handler callbacks. However, this will only be checked when data is accessed. Just keeping a reference around will not raise exceptions anymore. str()
and repr()
are guaranteed to never throw, even when the reference is invalid. That should make it easier to debug your code. These changes are all internal. The user-facing library interface and behaviour hasn't changed. Your code should just work with this new version.
Published by lonvia almost 2 years ago
ReplicationServer.set_request_parameter()
function to specify additional parameters to give to requests.get()
format()
where possibleReplicationServer.open_url()
is no longer recommended, use new ReplicationServer.set_request_parameter()
function insteadPublished by lonvia about 2 years ago
Published by lonvia about 2 years ago
Published by lonvia over 2 years ago
With this release the recommended way of using ReplicationServer
changes: use it now as a context manager with the with
statement:
with rserv.ReplicationServer('https://planet.osm.org/replication/hour/', 'osc.gz') as svr:
print(svr.get_state_info())
The old way of simply calling the constructor still works but it won't make use of requests.Sessions. Downloads will be a bit slower.
This is the last version to support Python 3.5.
add_box()
for osmium.osm.Header for setting the bbox in a OSM fileadd_relation()
apply_buffer()
functions inopen_url()
now reflects its new behaviourapply_file()
Published by lonvia about 3 years ago
Please note that this release adds a dependency to the requests library.
Published by lonvia over 3 years ago
Published by lonvia almost 4 years ago
Published by lonvia almost 4 years ago
Published by lonvia almost 4 years ago
When compiling against pybind11 2.6, you need at least CMake 3.4. Older versions of pybind11 are still supported and work together with older CMake versions.
Published by lonvia about 4 years ago
Published by lonvia over 4 years ago
Starting with this release, pyosmium no longer follows version numbering of libosmium.
Published by lonvia over 4 years ago
This is the last release to support Python2.
Published by lonvia about 5 years ago
Note: pyosmium 2.15 will be the last release series to support Python 2.
make_simple_handler()
convenience wrapperPublished by lonvia over 5 years ago
str()
representation for python 2ends_have_same_location()
Published by lonvia over 5 years ago
Published by lonvia almost 6 years ago
This is the first release to ship binary wheels.
Published by lonvia almost 6 years ago
Published by lonvia about 6 years ago