Skip to main content

PyPI version

kombit-client

A Python client for connecting to Danish government web services via KOMBIT Serviceplatformen. The package wraps a .NET library using pythonnet, exposing a clean Python API with Pythonic naming conventions.

Requirements

*Note: The “Den Danske Stat” root certificate must be installed in a trusted root certificate store (either the system or user trust store).

Installation

pip install kombit-client

Overview

All configuration can be handled via environment variables. You can set the following variables before using the service clients:

Environment Variable Description
CVR_NUMBER (Optional) Organisation's CVR number
CERT_BASE_PATH (Optional) Directory containing all certificate files
CLIENT_CERT (Optional) Filename of client certificate (e.g., client.p12)
CLIENT_CERT_BASE64 (Optional) Client certificate as a base64 string
CLIENT_CERT_PASS (Optional) Password for client certificate
ROOT_CERT (Optional) Filename of the root certificate (needs to be added to trust store)
ACCESS_CONTROL_CERT (Optional) Filename of the STS/Access Control certificate
SP_SIGNING_CERT (Optional) Filename of the "serviceplatformen" signing certificate
YDELSESINDEKS_CERT (Optional) Filename of the "ydelsesindeks" signing certificate
STS_ENDPOINT_ADDRESS (Optional) URL of the STS endpoint
STS_ENDPOINT_ID (Optional) Entity identifier for the STS

Defaults certificate names are defined in the code for public shared certificates and are based on current (2026-04-24) certificate names from serviceplatformen's production environment. All certificate paths are constructed as os.path.join(CERT_BASE_PATH, <filename>).

All configurations can also be set when initiating the service clients. Some service clients might require additional configuration passed at initialization.


Integrations

SF1520 – CPR replika opslag

Lookup person base data from CPR via SF1520.

Services

PersonBaseDataExtendedService

This service allows public authorities' user systems to retrieve personal information.

from kombit_client.integrations.sf1520 import PersonBaseDataExtendedClient

client = PersonBaseDataExtendedClient()

result = client.person_lookup(pnr="<a civil registration number>")
# Returns a dict with person base data

SF0770A – SKAT Indkomst - Opslag personoplysninger

Retrieve income data from SKAT via SF0770_A.

Services

SKATForwardEIndkomstService

Synchronous web service that allows you to retrieve income information.

The current implementation only allows retrieving income information for private individuals.

Useful docs:

Code example

from kombit_client.integrations.sf0770a import SKATForwardEIndkomstClient

client = SKATForwardEIndkomstClient(
    virksomhed_se_nummer_identifikator="<organisation's SE number>",
    abonnement_type_kode="<subscription type code>",
    abonnent_type_kode="<subscriber type code>",
    adgang_formaal_type_kode="<purpose of access code>"
)

result = client.indkomstoplysninger_laes(
    person_civil_registration_identifier="<a civil registration number>",
    soege_aar_maaned_fra_kode="202401",
    soege_aar_maaned_til_kode="202403",
)
# Returns a dict with income data for the given period

The soege_aar_maaned_fra_kode and soege_aar_maaned_til_kode parameters are year-month strings in YYYYMM format defining the search period.


SF1491 – Hent ydelser fra egen sektor

Lookup granted benefits and payments for a person within your own sector via SF1491.

Services

YdelseListeHent

This service allows public authorities' systems to retrieve information about granted and disbursed financial benefits (effektueringer) for a given person.

from kombit_client.integrations.sf1491 import YdelseListeHentClient

client = YdelseListeHentClient(
    cvr="<organisation's CVR>"
)

result = client.effektuering_hent(
    cpr="<a civil registration number>",
    start_dato="2026-01-01",  # optional
    slut_dato="2026-12-31"    # optional
)

License

MIT – see LICENSE for details.

Authors

Metadata

Release files for kombit-client 1.1.3

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

Built distribution (wheel)

Table of built distributions (wheels) for kombit-client 1.1.3
File Interpreter ABI Platform Actions
kombit_client-1.1.3-py3-none-any.whl Python 3 none any Details for kombit_client-1.1.3-py3-none-any.whl

Release files / kombit_client-1.1.3-py3-none-any.whl

Download URL kombit_client-1.1.3-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
81e3e32849e9cef0a30657daf5aef3b3edeac01d4255d8f0267965dbd4908c51
BLAKE2b-256 checksum
How to use checksums
0759c0f609141fd6e016e03474b57b7358275e1ed3571de516f926fca4ef3bd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for kombit-client 1.1.3

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.

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