Releases: metaodi/osmapi
Releases · metaodi/osmapi
Release 4.2.0
Added
- Add a new
timeout
parameter toOsmApi
which allows to set a timeout in seconds (default is 30s) for the API requests (see issue #170, thanks Mateusz Konieczny)
Changed
- Only include
discussion
key in result ofChangesetGet
ifinclude_discussion=True
(see issue #163, thanks Mateusz Konieczny) - Update OAuth example in README using cli-oauth2 (see PR #169, thanks Ilya Zverev)
Release 4.1.0
Added
- OAuth 2.0 example in README and in the
examples
directory
Changed
- Check if a passed
session
is authenticated and use this instead of Username/Password, this enables OAuth 2.0 authentication
Removed
- remove Python2 crumbs (see PR #159, thanks Alexandre Detiste)
Release 4.0.0
Added
- Add Python 3.11 to build
- Add pre-commit configuration for
flake8
andblack
Changed
- Upgrade the code with
pyupgrade
(see PR #146, thanks Miroslav Šedivý)
Miroslav Šedivý - Replace format with f-strings to resolve issue (see PR #147, thanks Miroslav Šedivý)
- Use the
black
code style for this code base
Removed
- BC-Break: Remove support for Python 3.7, new minimum version for osmapi is Python 3.8
Release 3.1.0
Added
- New
ElementNotFoundApiError
when a 404 response comes from the API - Raise an exception if a user tries to create a test changeset on the PROD server (see issue #66, thanks SomeoneElseOSM)
Changed
- Add new
NoteAlreadyClosedApiError
exception when you try to close an already closed note (see issue #135, thanks Mateusz Konieczny)
Fixed
NoteGets
now allows empty results i.e. it returns an empty list if no notes were found (see issue #137, thanks Mateusz Konieczny)
Release 3.0.0
Added
- Add context manager
Changeset()
to open/close changesets - Add
session
parameter to provide a custom http session object
Changed
- Refactor code into several modules/files to improve maintainability
- Use
logging
module to log debug information
Removed
- BC-Break: Remove
debug
parameter of OsmApi, replaced debug messages withlogging
module
Fixed
- Added
python_requires
to setup.py to define Python 3.7 as minimum version
Release 2.0.2
[2.0.2] - 2021-11-24
Changed
- Set
long_description
format to markdown
Release 2.0.1
[2.0.1] - 2021-11-24
Added
- Add Makefile for all common tasks
Fixed
- Long description of osmapi (now using directly the README.md)
Changed
- Switch from nose to pytest
- Move docs to its own subdirectory
Removed
- Remove tox configuration and dependency
Release 2.0.0
2.0.0 - 2021-11-22
Added
- Move from Travis CI to Github Actions
- Add more API-specific errors to catch specific errors (see issue #115, thanks Mateusz Konieczny):
ChangesetClosedApiError
NoteClosedApiError
VersionMismatchApiError
PreconditionFailedApiError
Changed
- BC-Break: osmapi does not support Python 2.7, 3.3, 3.4, 3.5 and 3.6 anymore
Fixed
- Return an empty list in
NodeRelations
,WayRelations
,RelationRelations
andNodeWays
if the returned XML is empty (thanks FisherTsai, see issue #117)
Release 1.3.0
Added
- Add close() method to close the underlying http session (see issue #107)
- Add context manager to automatically open and close the http session (see issue #107)
Fixed
- Correctly parse password file (thanks Julien Palard, see pull request #106)
Release 1.2.2
Fix travis deployment