Skip to main content

Dapla CLI

PyPI Status Python Version License

Documentation Tests Coverage Quality Gate Status

pre-commit Black Ruff Poetry

Installation

Install with pipx from pypi:

pipx install dapla-cli

Alternatively you can build dapla-cli using the provided nix flake:

$ nix build .#dapla-cli
$ ./result/bin/dp --version

or open the provided nix shell:

$ nix develop .#
$ dp --version

Usage

Starting point: dp --help

Auth

This tool uses a device flow to authenticate against a Keycloak client.

Keycloak clients

By default it will use a client called dapla-cli, but this may be customized by providing a value --client my-client.

Any client used by this tool needs to have the device flow activated. Refer here for an example client configuration.

Login

Run the command and then follow the instructions to

dp auth login
dp auth login --client my-client --env test

Show token

Once logged in, the access token can be accessed.

dp auth show-access-token
dp auth show-access-token --client my-client --env test --to-clipboard

Logout

dp auth logout

API reference

Please see the Reference Guide for details.

Development

Install a local development edition with pipx from the source code:

pipx install --editable .

Alternatively, use make help for other options, such as running Dapla CLI in an isolated environment:

run-isolated       Run Dapla CLI in isolated environment (Docker container) using latest release from PyPI
run-isolated-dev   Run Dapla CLI in isolated environment (Docker container) using latest release from local source (in editable mode)
pipx-install       Install with pipx from PyPI
pipx-install-dev   Install with pipx from the source code in editable mode
build-docker       Build local Docker image for testing in an isolated environment

Contributing

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

License

Distributed under the terms of the MIT license, Dapla CLI 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-cli 0.3.0

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-cli 0.3.0
File Size Uploaded
dapla_cli-0.3.0.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dapla-cli 0.3.0
File Interpreter ABI Platform
dapla_cli-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.1 kB

Release files / dapla_cli-0.3.0.tar.gz

Download URL dapla_cli-0.3.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2303bdef44d4667b5cf33b0f05c004a8f6ff2362eb3591cd666e8af5c6cba28d
BLAKE2b-256 checksum
How to use checksums
8837d8f58c3c66fe6ba5d79aee1b1cabe3676d74edec5e30b77f3b0318dac7c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.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 14, 2026.

Transparency log

Release files / dapla_cli-0.3.0-py3-none-any.whl

Download URL dapla_cli-0.3.0-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6b3ea9c959533987afcc557e7a33e2ed2624ce33d29c1c3b42e3424ae6224ac
BLAKE2b-256 checksum
How to use checksums
7c7895834118e78787f70dbd23f7e8e480d0ef175ec5f6c20597b1feddaef2f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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