Digitalmarketplace-apiclient

Latest version: v24.0.0

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

Scan your dependencies

Page 2 of 4

18.0.0

PR: [151](https://github.com/alphagov/digitalmarketplace-apiclient/pull/151)

The default request error message for unrecognised/unhandled errors has changed from 'Request failed' to 'Unknown request failure in dmapiclient'. 'Request failed' should be seen only in exceptional circumstances - most exceptions raised from failed requests should now hold the str() and repr() calls of the request error as their message.

Any code that relies on the specific format of the request errors raised by the apiclient will need to be updated.

17.0.0

PR: [143](https://github.com/alphagov/digitalmarketplace-apiclient/pull/143)

No longer python2 compatible.

16.0.0

PR: [137](https://github.com/alphagov/digitalmarketplace-apiclient/pull/137)

Moves `api_stubs.py` from this repo (digitalmarketplace-apiclient) to utils (digitalmarketplace-utils). Any repositories using
the stubs need to now use stubs from dm-utils.

Ensure that you update frontend app requirements files to use dmutils>=36.6.0 and that you update imports. The interface for
some of the stubs has changed slightly, and more detailed responses are returned for the frameworks stub, so be aware
of this as you migrate.

Old:
python
import dmapiclient.api_stubs


New:
python
import dmutils.api_stubs

14.5.0

:rotating_light: **Note:** there was mistaken versioning between `14.5.0` and `15.0.0`, meaning that the changes
described below for `15.0.0` actually applied from `14.5.0` onwards.

PR: [123](https://github.com/alphagov/digitalmarketplace-apiclient/pull/123)

Removes `get_direct_award_project_services_iter` in favour of `find_direct_award_project_services_iter`, which is the
more consistent naming scheme.

Old:
python
data_api_client.get_direct_award_project_services_iter(...)


New:
python
data_api_client.find_direct_award_project_services_iter(...)

14.0.0

PR: [116](https://github.com/alphagov/digitalmarketplace-apiclient/pull/116)

`search_services` method on the search-api-client has been generalized to `search` and now takes a `doc_type` argument.
This allows more than just services to be searched.

`aggregate` method on the search-api-client has been generalized to `aggregate` to allow for aggregating
briefs too. It takes an extra argument, `doc_type`.

Old:

search_api_client.aggregate_services(index=index, q=q, aggregations=aggregations)
search_api_client.search_services(index, q=q, page=page, id_only=id_only, **filters)


New:

search_api_client.aggregate(index=index, doc_type='services', q=q, aggregations=aggregations)
search_api_client.search(index, doc_type, q=q, page=page, id_only=id_only, **filters)

13.0.0

PR: [115](https://github.com/alphagov/digitalmarketplace-apiclient/pull/115)

`name` parameter has been added to `update_user` method, so any code calling
this method with positional parameters needs to be updated to use this version.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.