Skip to main content

1 Welcome to ZGW Consumers’ documentation!

Version:

1.2.1

Source:

https://github.com/maykinmedia/zgw-consumers

Keywords:

OpenAPI, Zaakgericht Werken, Common Ground, NLX

Run CI Coverage status Code linting Documentation Status

python-versions django-versions pypi-version

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

  1. Install from PyPI

pip install zgw-consumers
  1. 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.

Metadata

Release files for zgw-consumers 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zgw-consumers 1.2.1
File Size Uploaded Provenance
zgw_consumers-1.2.1.tar.gz 57.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zgw-consumers 1.2.1
File Interpreter ABI Platform
zgw_consumers-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 122.4 kB

Release files / zgw_consumers-1.2.1.tar.gz

Download URL zgw_consumers-1.2.1.tar.gz
Size 57.6 kB
Tags Source
SHA-256 checksum
How to use checksums
76b6ae066622117718f54cd0174054f8190df9045a8834fb675439553be59e1a
BLAKE2b-256 checksum
How to use checksums
14541a9deeee21aa1ab2d88dbf8fcaa312d4b9f488abd87486df50fa9c44c3a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / zgw_consumers-1.2.1-py3-none-any.whl

Download URL zgw_consumers-1.2.1-py3-none-any.whl
Size 64.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
957782ed9b0152d970f5ffc54f3b3ed0d7f639d0d1f78ed48c8192fe63a94b09
BLAKE2b-256 checksum
How to use checksums
76c8f98b67fad835f508b29c6a9052f61d9936c94c978f07978487931d9ee799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for zgw-consumers 1.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files No provenance

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