Skip to main content

Digital Marketplace API client

Python 3.11 Python 3.12 Python 3.13 Python 3.14 PyPI version

What's in here?

API clients for Digital Marketplace Data API and Search API.

Originally was part of Digital Marketplace Utils.

Running the tests

Install Python dependencies:

make bootstrap
invoke requirements-dev

Run the tests:

invoke test

Usage examples

data_client = apiclient.DataAPIClient(api_url, api_access_token)
services = data_client.find_services_iter(framework=frameworks)

Releasing a new version

To update the package version, edit the __version__ = ... string in dmapiclient/__init__.py, commit and push the change and wait for CI to create a new version tag.

Once the tag is available on GitHub, the new version can be used by the apps by adding the following line to the app requirements.txt (replacing X.Y.Z with the current version number):

git+https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-apiclient.git@X.Y.Z#egg=ccs-digitalmarketplace-apiclient==X.Y.Z

When changing a major version number consider adding a record to the CHANGELOG.md with a description of the change and an example of the upgrade process for the client apps.

Pre-commit hooks

This project has a pre-commit hook to do some general file checks and check the pyproject.toml. Follow the Quick start to see how to set this up in your local checkout of this project.

Licence

Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.

The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccs_digitalmarketplace_apiclient-38.11.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ccs_digitalmarketplace_apiclient-38.11.0.tar.gz.

File metadata

File hashes

Hashes for ccs_digitalmarketplace_apiclient-38.11.0.tar.gz
Algorithm Hash digest
SHA256 51978dd4004b7c37c4ecf67169e2b775dd6f1b6741eed9a30f0e266db1549d28
MD5 25881c398eb292b80454914c0aef2eb9
BLAKE2b-256 5eddd9024d88ff5b800964c1c67391a2e7d7d7d032f7cad2d0d1c2f2082daae5

See more details on using hashes here.

File details

Details for the file ccs_digitalmarketplace_apiclient-38.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ccs_digitalmarketplace_apiclient-38.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3762d7c2590f3bffc6af04ff9b8ad51ba8b74ed01d907d420edd97a6fd99662f
MD5 fca0915da48ef4805c2da614c3e82c3f
BLAKE2b-256 649e2dad04cbb2daa46dc3192616483c09d17555f6f4cd8aa6b0714055832902

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

38.11.0 This release

2 files

38.10.0

2 files

38.9.0

2 files

38.8.0

2 files

38.7.1

2 files

38.7.0

2 files

38.6.0

2 files

38.5.0

2 files

38.4.0

2 files

38.3.2

2 files

38.3.1

2 files

38.3.0

2 files

38.2.1

2 files

38.2.0

2 files

38.1.0

2 files

38.0.0

2 files

37.15.0

2 files

37.14.0

2 files

37.13.0

2 files

37.12.0

2 files

37.11.0

2 files

37.10.0

2 files

37.9.0

2 files

37.8.0

2 files

37.7.0

2 files

37.6.0

2 files

37.5.0

2 files

37.4.1

2 files

37.4.0

2 files

37.3.0

2 files

37.2.0

2 files

37.1.1

2 files

37.1.0

2 files

37.0.1

2 files

37.0.0

2 files

36.0.2

2 files

36.0.1

2 files

36.0.0

2 files

35.0.1

2 files

35.0.0

2 files

34.2.0

2 files

34.1.0

2 files

34.0.0

2 files

33.17.1

2 files

33.17.0

2 files

33.16.2

2 files

33.16.1

2 files

33.16.0

2 files

33.15.0

2 files

33.14.0

2 files

33.13.0

2 files

33.12.1

2 files

33.12.0

2 files

33.11.0

2 files

33.10.0

2 files

33.9.0

2 files

33.8.0

2 files

33.7.0

2 files

33.6.0

2 files

33.5.0

2 files

33.4.0

2 files

33.3.0

2 files

33.2.0

2 files

33.1.0

2 files

33.0.0

2 files

32.6.0

2 files

32.5.0

2 files

32.4.0

2 files

32.3.0

2 files

32.2.4

2 files

32.2.3

2 files

32.2.2

2 files

32.2.1

2 files

32.2.0

2 files

32.1.0

2 files

32.0.0

2 files

31.3.0

2 files

31.2.0

2 files

31.1.0

2 files

31.0.0

2 files

30.5.0

2 files

30.4.0

2 files

30.3.0

2 files

30.2.0

2 files

30.1.0

2 files

30.0.0

2 files

29.12.2

2 files

29.12.1

2 files

29.12.0

2 files

29.11.1

2 files

29.11.0

2 files

29.10.0

2 files

29.9.0

2 files

29.8.0

2 files

29.7.0

2 files

29.6.0

2 files

29.5.0

2 files

29.4.0

2 files

29.3.0

2 files

29.2.0

2 files

29.1.0

2 files

29.0.0

2 files

28.0.0

2 files

27.3.0

2 files

27.2.0

2 files

27.1.0

2 files

27.0.0

2 files

26.7.0

2 files

26.6.1

2 files

26.6.0

2 files

26.5.0

2 files

26.4.1

2 files

26.4.0

2 files

26.3.0

2 files

26.2.1

2 files

26.2.0

2 files

26.1.2

2 files

26.1.1

2 files

26.1.0

2 files

26.0.2

2 files

26.0.1

2 files

26.0.0

2 files

25.15.0

2 files

25.14.2

2 files

25.14.1

2 files

25.14.0

2 files

25.13.0

2 files

25.12.0

2 files

25.11.0

2 files

25.10.1

2 files

25.10.0

2 files

25.9.0

2 files

25.8.0

2 files

25.7.0

2 files

25.6.0

2 files

25.5.0

2 files

25.4.2

2 files

25.4.1

2 files

25.4.0

2 files

25.3.0

2 files

25.2.0

2 files

25.1.0

2 files

25.0.0

2 files

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page