Osm-easy-api

Latest version: v3.0.1

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

Scan your dependencies

Page 1 of 4

3.0.1

Added
- Support for python 3.12

Fixed
- Dependencies update

3.0.0

Added
- Support for `oAuth2`: `access_token` parameter in `Api` class constructor.
- `Unauthorized` exception. (No access token.)
- `Forbidden` exception. (The access token does not support the needed scope or you must be a moderator.)
- `gpx.create()` endpoint.
- `GpxFile` data class.
- `Visibility` enum.
- `gpx.update()` endpoint.
- `gpx.delete()` endpoint.
- `gpx.get_details()` endpoint.
- `gpx.get_file()` endpoint.
- `gpx.list_details()` endpoint.
- `order` parameter in `changeset.get_query()`.

Fixed
- Types in `elements` endpoint.
- Missing documentation.
- `misc.get_map_in_bbox()` endpoint should not yield `string`.

Changed
- The way http errors are handled.
- In `elements.get()` endpoint the `element` parameter has been renamed to `element_type`.
- In `elements.history()` endpoint the `element` parameter has been renamed to `element_type`.
- In `elements.version()` endpoint the `element` parameter has been renamed to `element_type`.
- In `elements.getQuery()` endpoint the `element` parameter has been renamed to `element_type`.
- In `elements.relations()` endpoint the `element` parameter has been renamed to `element_type`.
- In `elements.full()` endpoint the `element` parameter has been renamed to `element_type`.
- Type of `user_id` parameter in `changeset.get_query()` was changed from `str` to `int`.
- `OsmChange_parser_generator()` and `OsmChange_parser()` from `diff` module are now 'private' functions. Use `Diff.get()` instead.
- `notes.search()` endpoint throws `LimitsExceeded` exception instead of `ValueError`.
- `page_number` paremeter in `gpx.get()` has now default value 0.
- Now classes are imported from individual modules - not from the main library. See examples in the `README.md`.
- `gpx.get()` renamed to `gpx.get_gps_points()`

Removed
- Support for `HTTP Basic authentication`: `username` and `password` parameters in `Api` class constructor.
- Most ` type: ignore`.
- `NotAModerator` exception. It is now replaced by `Forbidden` exception.

2.2.0

Added
- Exception for `410` status code in notes endpoint.

2.1.1

Fixed
- Percent-encoding was not applied on texts entered by the user. [22](https://github.com/docentYT/osm_easy_api/issues/22)

2.1.0

Added
- `TooManyRequests` exception.
- Support for `429` status code in `api.changeset.discussion.comment()`.

2.0.0

Added
- Missing status code handling in `notes.get()`.
- Support for hide note endpoint.
Fixed
- Problems with parsing data chunks received by api.
- Small grammar corrections in the documentation.
Changed
- Working method of parser used in `notes` endpoint.
- Working method of parsers in `misc` endpoint.
- Working method of parsers in `user` endpoint.
- Working method of parsers in `changeset` endpoint.
- Working method of parsers in `elements` endpoint.
Removed
- `EmptyResult` api exception, which was used in endpoints `notes`, `user` and `changeset`. From now on when the results are empty an empty list will be returned.
- Unused imports.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.