Osmium

Latest version: v4.0.2

Safety actively analyzes 688053 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 11

3.5.0

Added

- type annotations for the public interface
- new `ReplicationServer.set_request_parameter()` function to specify additional
parameters to give to `requests.get()`

Fixed

- writer now rolls back data buffer after exceptions (fixes 212)
- off-by-one error in computation of change ID from a start date
- socket timeout in pyosmium-get-changes/pyosmium-up-to-date was ignored
falling back to waiting forever on requests

Changed

- use format strings instead of `format()` where possible
- pyosmium-get-changes now prints an error message when there is a HTTP error
during download
- overwriting `ReplicationServer.open_url()` is no longer recommended,
use new `ReplicationServer.set_request_parameter()` function instead
- cookies for pyosmium-get-changes/pyosmium-up-to-date are now set via
request parameters, removing the last use-case where urllib was used
- update bundled pybind11 to 2.10.1

3.4.1

Fixed

- allow building docs from built sources in PYTHONPATH again

3.4.0

Fixed

- finding the build directory when newer versions of setuptools are used

Changed

- improve error message when writing to a writer that is already closed
- update to pybind 2.10.0
- drop support for Python 3.5

3.3.0

Added

- `add_box()` for osmium.osm.Header for setting the bbox in a OSM file
- SimpleWriter now can receive a customized header in its constructor
- SimpleWriter now accepts a list of RelationMember in then member parameter
of `add_relation()`
- more tests for replication server and osm base types

Fixed

- AttributeError when using pyosmium-get-changes with cookies (thanks wiktorn)
- avoid memory leak in `apply_buffer()` functions in
SimpleHandler and MergeInputReader
- maek sure close() is called for requests.Session and requests.Response
- documentation for `open_url()` now reflects its new behaviour
- build issue with raw ssize_t on Windows since Python 3.10

Changed

- ReplicationServer is now a context manager
- allow any string-like object for `apply_file()`
- switch tests from nose to pytest
- use Python libraries instead of wget for downloading contrib packages
- update to libosmium 2.18.0 (requires now C++14)
- update to pybind11 2.9.1

3.2.0

Fixed

- merge change files correctly so that latest applied object comes first

Changed

- switch to requests library for downloading files (thanks jocelynj)
- update to libosmium 2.17.0
- update to pybind11 2.7.1

3.1.3

Fixed

- up-to-date: check if any updates are available before starting download
- AttributeError when writing replication headers and network is unreachable

Changed

- update to pybind11 2.6.2

Page 2 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.