Skip to main content

Adressevælger API Client

Introduction

Client library for accessing "Adressevælger" Web API.

Example

import adressevaelger
from adressevaelger import Adressesoegning, Husnummersoegning


def main():
    client = adressevaelger.Client()
    try:
        print("Adresse søgning:")
        results = client.soeg_fonetisk(
            Adressesoegning(vejnavn="sankt keld", husnummer="11", postnummer="2100")
        )
        adresse_id = ""
        for result in results:
            adresse_id = result.id
            print(result)

        print("\nAdresse id opslag:")
        result = client.adresse_id(adresse_id=adresse_id)
        print(result)

        print("\nHusnummer søgning:")
        results = client.soeg_fonetisk(
            Husnummersoegning(vejnavn="sankt keld", husnummer="11", postnummer="2100")
        )
        husnummer_id = ""
        for result in results:
            husnummer_id = result.id
            print(result)

        print("\nHusnummer id opslag:")
        result = client.husnummer_id(husnummer_id=husnummer_id)
        print(result)

    except adressevaelger.ApiConnectionError as err:
        print(err)
    except adressevaelger.ApiError as err:
        print(err)


if __name__ == "__main__":
    main()
´´´

Release files for adressevaelger 0.2.1

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 adressevaelger 0.2.1
File Interpreter ABI Platform
adressevaelger-0.2.1-py3-none-any.whl Python 3 none any Details

Release files / adressevaelger-0.2.1-py3-none-any.whl

Download URL adressevaelger-0.2.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2377bcfd07d3c8dabb61d74058c10eebe56b29c462ef600359b3ed3f787e1c49
BLAKE2b-256 checksum
How to use checksums
d605ed54d7b0bae05eb850e4c98e0e33fac627ff1ecf39ef04e77199783eedc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.8

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

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