Skip to main content

Dapla Auth Client

PyPI Status Python Version License

Documentation Tests Coverage Quality Gate Status

pre-commit Black Ruff Uv

Features

  • Detects Dapla environment, service, and region via environment variables
  • Retrieves current Dapla region (e.g., checks for DAPLA_LAB)
  • Reads Kubernetes service-account token from filesystem
  • Exchanges Kubernetes token for Keycloak token in Dapla Lab
  • Overrides Google-Auth refresh handler to use custom token fetch logic
  • Fetches Google ADC credentials

Requirements

  • Python >3.8 (3.10 is preferred)
  • uv, install via curl -LsSf https://astral.sh/uv/install.sh | sh

Installation

You can install Dapla Auth Client via pip from PyPI:

pip install dapla-auth-client

Usage

# This code snippet demonstrates how to use the Dapla Auth Client to fetch a personal token.

from dapla_auth_client import AuthClient

print(AuthClient.fetch_personal_token())

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Dapla Auth Client is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from Statistics Norway's SSB PyPI Template.

Metadata

Release files for dapla-auth-client 1.2.5

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

Source distribution (sdist)

Source distribution for dapla-auth-client 1.2.5
File Size Uploaded
dapla_auth_client-1.2.5.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dapla-auth-client 1.2.5
File Interpreter ABI Platform
dapla_auth_client-1.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / dapla_auth_client-1.2.5.tar.gz

Download URL dapla_auth_client-1.2.5.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cb79aa616c2780efa80e2993d78420300cb224bfb87e18d0b2b37c48cfa5d8ed
BLAKE2b-256 checksum
How to use checksums
5cc3a79e67d30e61295739c89072539f3484c0845c6a9d1a624096e246992ea9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 19, 2026.

Transparency log

Release files / dapla_auth_client-1.2.5-py3-none-any.whl

Download URL dapla_auth_client-1.2.5-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2c07a6bfe1a349f3b69c7bb6ed3f7e471030c126ff7a38fdef7dc64516ffa79
BLAKE2b-256 checksum
How to use checksums
48345de4f259c1f83911751803f3735447f70afa23dab58d9bbf17779d3479e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.5 This release

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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