Skip to content

Releases: docentYT/osm_easy_api

v3.0.1

21 May 18:47
f91d4f6
Compare
Choose a tag to compare

Added

  • Support for python 3.12

Fixed

  • Dependencies update

v3.0.0

19 Mar 13:00
820b71f
Compare
Choose a tag to compare

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.

v2.2.0

23 Feb 18:59
b617b30
Compare
Choose a tag to compare

Added

  • Exception for 410 status code in notes endpoint.

v2.1.1

29 Jan 19:46
41dc557
Compare
Choose a tag to compare

Fixed

  • Percent-encoding was not applied on texts entered by the user. #22

v2.1.0

06 Sep 16:08
167208b
Compare
Choose a tag to compare

Added

  • TooManyRequests exception.
  • Support for 429 status code in api.changeset.discussion.comment().

v2.0.0

29 Aug 09:33
5cf730a
Compare
Choose a tag to compare

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.

v1.1.1

03 Aug 11:41
3f01b9a
Compare
Choose a tag to compare

Fixed

  • Corrected character when adding parameters in endpoint api.notes.get_bbox() (from ? to &).
  • Fixed the limit parameter restrictions in api.notes.get_bbox() documentation.

v1.0.2

26 Jul 11:10
a1e0f6d
Compare
Choose a tag to compare

Fixed

  • Auth problems in API when using characters unsupported by latin-1 codec.

v1.0.1

24 Jul 09:47
576a0ba
Compare
Choose a tag to compare

Fixed

  • api.notes.create() created only anonymous notes.

v1.0.0

18 Jun 21:48
ab83ffb
Compare
Choose a tag to compare

Added

  • to_xml() method in OsmChange.
  • upload() method in changeset endpoint has new optional arguments.
  • Test for to_xml() method in OsmChange.
  • # pragma: no cover for unexpected api errors (Those that are not in the specification on the wiki).

Changed

  • Private _to_xml() method in OsmChange is now static.