Skip to main content
Version:
0.5.0

A Python client library for interacting with the Open Klant API.

Installation

pip install open-klant-client

Usage

Initialize the client with your API endpoint and token:

from openklant_client import OpenKlantClient

client = OpenKlantClient(
    base_url="https://example.com/klantinteracties/api/v1",
    token="your_api_token"
)

List resources

# List all partijen
partijen = client.partij.list()

# List klantcontacten with filters
contacten = client.klant_contact.list(params={"onderwerp": "vraag"})

# Auto-paginate through all results (max_requests=None means paginate until all rows are retrieved)
for partij in client.partij.list_iter(max_requests=10):
    print(partij)

Get a specific resource

# Get a partij by UUID
partij = client.partij.get(uuid="123e4567-e89b-12d3-a456-426614174000")

Create a resource

# Create a new actor
actor = client.actor.create(
    data={
        "naam": "John Doe",
        "soortActor": "medewerker",
        "indicatieActief": True,
        "actoridentificator": {
            "objectId": "123456",
            "codeObjecttype": "employee",
            "codeRegister": "hr",
            "codeSoortObjectId": "id",
        },
    }
)

Download files

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

Source Distribution

open_klant_client-0.5.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

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

open_klant_client-0.5.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file open_klant_client-0.5.0.tar.gz.

File metadata

  • Download URL: open_klant_client-0.5.0.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for open_klant_client-0.5.0.tar.gz
Algorithm Hash digest
SHA256 543c6f06c89ca86f5286d74b023829118fc2cc2a7891fd572ac13065275082b4
MD5 b2a57d5f82e8263fcda46c4d4a6b0f7c
BLAKE2b-256 2ca6083e09d9bffa33dff143cbce8450554af6073d1de9ec164c58e870a4533d

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_klant_client-0.5.0.tar.gz:

Publisher: ci.yml on maykinmedia/open-klant-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file open_klant_client-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for open_klant_client-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd248b27ef7f45f09e6fd435a9b064aacdf9843dca602b9df8a0887b198a7a45
MD5 b6770797cd17de29c5f7d0bd195cc0e8
BLAKE2b-256 ae779bcdad74aa4df9307943a3bb4a7471b9ab89a56ffa1ed530dbbf504c6340

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_klant_client-0.5.0-py3-none-any.whl:

Publisher: ci.yml on maykinmedia/open-klant-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.0

2 files

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page