1 Welcome to ZGW Consumers’ documentation!
- Version:
2.0.3
- Source:
- Keywords:
OpenAPI, Zaakgericht Werken, Common Ground, NLX
Manage your external API’s to consume.
2 Features
Store services with their configuration in the database
Built in ape-pie API client adapter
NLX support
Declare data/domain objects as modern Python dataclasses
3 Installation
3.1 Requirements
Python 3.10 or newer
Django 4.2 or newer
3.2 Install
Install from PyPI
pip install zgw-consumers
Add zgw_consumers and simple_certmanager to the INSTALLED_APPS setting.
4 Usage
In the Django admin, you can create Service instances to define your external APIs.
Client
To get a client for a given resource, you can use:
from zgw_consumers.client import build_client
from zgw_consumers.models import Service
my_service = Service.objects.get(api_root="https://api.example.com/")
client = build_client(my_service)
with client:
# The preferred way to use the client is within a context manager
client.get("relative/url")
The resulting client will have certificate and authentication automatically configured from the database configuration.
Release files for zgw-consumers 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zgw_consumers-2.0.3.tar.gz | 55.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zgw_consumers-2.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 121.5 kB
Release files / zgw_consumers-2.0.3.tar.gz
| Download URL | zgw_consumers-2.0.3.tar.gz |
|---|---|
| Size | 55.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
843fc6c675f6893a1d3ce0735ac7dc6af71b4feceedbef9efc5f78b02874b7a5
|
|
BLAKE2b-256 checksum How to use checksums |
4b7a9965c557a50d6fd5c1478913c260c5358dcd13f7dddd23944343bf50b34e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logRelease files / zgw_consumers-2.0.3-py3-none-any.whl
| Download URL | zgw_consumers-2.0.3-py3-none-any.whl |
|---|---|
| Size | 65.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8452e0a9cc7f078b4bdc4b240b17733118388f585f0582484991ff0a2fd2b832
|
|
BLAKE2b-256 checksum How to use checksums |
6347d6a66e6b4458b5cc439e671d553bfadc39a6c4b6cffb035547e583e319da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency log