All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support for python 3.12
- Dependencies update
- Support for
oAuth2
:access_token
parameter inApi
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 inchangeset.get_query()
.
- Types in
elements
endpoint. - Missing documentation.
misc.get_map_in_bbox()
endpoint should not yieldstring
.
- The way http errors are handled.
- In
elements.get()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.history()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.version()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.getQuery()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.relations()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.full()
endpoint theelement
parameter has been renamed toelement_type
. - Type of
user_id
parameter inchangeset.get_query()
was changed fromstr
toint
. OsmChange_parser_generator()
andOsmChange_parser()
fromdiff
module are now 'private' functions. UseDiff.get()
instead.notes.search()
endpoint throwsLimitsExceeded
exception instead ofValueError
.page_number
paremeter ingpx.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 togpx.get_gps_points()
- Support for
HTTP Basic authentication
:username
andpassword
parameters inApi
class constructor. - Most
# type: ignore
. NotAModerator
exception. It is now replaced byForbidden
exception.
- Exception for
410
status code in notes endpoint.
- Percent-encoding was not applied on texts entered by the user. #22
TooManyRequests
exception.- Support for
429
status code inapi.changeset.discussion.comment()
.
- Missing status code handling in
notes.get()
. - Support for hide note endpoint.
- Problems with parsing data chunks received by api.
- Small grammar corrections in the documentation.
- 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.
EmptyResult
api exception, which was used in endpointsnotes
,user
andchangeset
. From now on when the results are empty an empty list will be returned.- Unused imports.
- Corrected character when adding parameters in endpoint
api.notes.get_bbox()
(from?
to&
). - Fixed the
limit
parameter restrictions inapi.notes.get_bbox()
documentation.
limit
parameter forapi.changeset.get_query()
endpoint.
- Corrected character when adding parameters in endpoint
api.changeset.get_query()
(from;
to&
).
- Auth problems in API when using characters unsupported by latin-1 codec.
api.notes.create()
created only anonymous notes.
to_xml()
method inOsmChange
.upload()
method inchangeset
endpoint
has new optional arguments.- Test for
to_xml()
method inOsmChange
. # pragma: no cover
for unexpected api errors (Those that are not in the specification on the wiki).
- Private
_to_xml()
method inOsmChange
is now static.
- Order of elements in xml generated by
Way._to_xml()
. First tags, then nodes.
Relation._to_xml()
was returning an xml without osm tags.- Deleted disused variable in
Node._to_xml()
. - Fixed incorrect relation parsing of data recived by
full
endpoint.
- Updated
requests
from2.28.1
to2.31.0
.
to_dict()
method andfrom_dict()
class method toNote
.to_dict()
method andfrom_dict()
class method toComment
.to_dict()
method andfrom_dict()
class method toUser
.- Documentation about
Meta
andAction
class. - Assert error (with information to report it on github) when api returns an error code not described on the wiki.
to_dict()
method andfrom_dict()
class method to(relation) Member
.
Note
can now be imported from package.Comment
can now be imported from package.User
can now be imported from package.Member
can now be imported from package.- Pdoc command in
README.md
. Relation.to_dict()
method now recursively serialises members.Way.to_dict()
method now recursively serialises nodes.
- Changed imports in
Relation.py
to use importing through a module rather than directly from a file. - Added
sample_dataclasses.py
file in tests fixtures to reduce code duplication. - Changed function name and deleted unnecessary argument in
append_elements_to_master_element()
nested inside private method_to_xml()
inOsmChange
.
to_dict()
method andfrom_dict()
class method to Changeset. #7- Ability to set user_agent in
Diff
andApi
class. #5 osm_object_primitive
from_dict()
class method now raisesValueError
if thetype
key is not found.
Changeset
is now exported from data_classes module.- More tests.
to_dict()
method andfrom_dict()
class method toosm_object_primitive
. (An object that is inherited by aNode
,Way
,Relation
). #3- Support for historical anonymous edits and edits made by deleted accounts. #4
- Improvement of utils.join_url() function.
- Spelling errors corrected @matkoniecz
- Fixed the non-setting of the "visible" attribute.
- Fixed return type of generator in Diff.get() method.
- License
- Initial import