Skip to main content

dbx-tools-auth

Generated Python bindings for provider-neutral Rust authentication. Rust owns OAuth, persistent stores, locking, and token refresh.

Both provider option records compose the shared AuthOptions record as auth. For example, import AuthOptions from dbx_tools.auth and pass auth=AuthOptions(lock_timeout_seconds=10) to either ProviderOptions or DatabricksAuthOptions. Omission uses Rust's lifecycle defaults. Former flattened timeout and callback-image fields now belong inside auth; see the shared options guide.

import os
from dbx_tools.auth import OAuthGrant, ProviderOptions, create_provider_auth

auth = await create_provider_auth(
    ProviderOptions(
        provider="example",
        token_endpoint="https://identity.example.com/oauth/token",
        client_id=os.environ["OAUTH_CLIENT_ID"],
        client_secret=os.environ["OAUTH_CLIENT_SECRET"],
        grant=OAuthGrant.CLIENT_CREDENTIALS,
        scopes=["read"],
    )
)
token = await auth.token(False)

Profiles are optional. Scope sets are trimmed, deduplicated, and sorted before selecting a credential. FileLayout.SINGLE and FileLayout.PER_CREDENTIAL select shared-file or per-identity storage. cache_dir overrides the generic file location. StorageAdapter supports custom persistence; create_storage_handle keeps its callbacks in this library when passing the store to either provider's create_*_auth_with_storage factory. Generic providers now accept the handle too, rather than a raw adapter.

Install a published native wheel with pip install dbx-tools-auth. Repository installation is also available with pip install "git+https://github.com/reggie-db/dbx-tools.git@main#subdirectory=packages/py/auth"; source checkouts need the platform library generated by bun run rs:bindings.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

dbx_tools_auth-0.6.173-py3-none-win_amd64.whl (2.9 MB view details)

Uploaded Python 3Windows x86-64

dbx_tools_auth-0.6.173-py3-none-manylinux_2_39_aarch64.whl (2.7 MB view details)

Uploaded Python 3manylinux: glibc 2.39+ ARM64

dbx_tools_auth-0.6.173-py3-none-manylinux_2_35_x86_64.whl (2.9 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

dbx_tools_auth-0.6.173-py3-none-macosx_13_0_x86_64.whl (2.9 MB view details)

Uploaded Python 3macOS 13.0+ x86-64

dbx_tools_auth-0.6.173-py3-none-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file dbx_tools_auth-0.6.173-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.173-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 786b4320193d6cb80314ddd59ef854a7b223a5684d7b96df2103720a807620d7
MD5 16dc54ff06afb82022f8805a6148c6fa
BLAKE2b-256 31f0805d7e77671b7b26d1675d563ceef3db85928e03b03dde78ccffdc660eb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.173-py3-none-win_amd64.whl:

Publisher: python-release.yml on reggie-db/dbx-tools

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

File details

Details for the file dbx_tools_auth-0.6.173-py3-none-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.173-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 3b19028e5443a3cec5b4557643267168f0295ceb73ff5a0c2f51c520569d460c
MD5 66275ac486d622d30c2dafa4197716e4
BLAKE2b-256 1848d2c963c42c4349f8b4aea3fdcf4567ee105d0da5d6bb73eda211e0be7d75

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.173-py3-none-manylinux_2_39_aarch64.whl:

Publisher: python-release.yml on reggie-db/dbx-tools

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

File details

Details for the file dbx_tools_auth-0.6.173-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.173-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 7d4d0ea8a823676a43a12f627be409732ad3cc2770c176fbe1058036f2f2e763
MD5 98685df56e06dd7e4e927cc8fee4ea30
BLAKE2b-256 9eed34b847c65df07c0a7d320922dbb5d1a726d3414d94688a06d1755fe41d5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.173-py3-none-manylinux_2_35_x86_64.whl:

Publisher: python-release.yml on reggie-db/dbx-tools

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

File details

Details for the file dbx_tools_auth-0.6.173-py3-none-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.173-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c05d7dd27bbee0b146b714c0b8d8e30ac4d4cf9a50b8817fbd28ec87db43fa8c
MD5 45bd49bf6b3db062d812b9dee0bbffca
BLAKE2b-256 87c5edbfe757adcb4c5b102cfc28d78403038f811f730258c58aa18562487818

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.173-py3-none-macosx_13_0_x86_64.whl:

Publisher: python-release.yml on reggie-db/dbx-tools

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

File details

Details for the file dbx_tools_auth-0.6.173-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.173-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eec3a172ebacb488dcba7a623e45caaef14cd66995314307d9bb8e9820f5ae7a
MD5 98b42d229308ad4ebc3bf25f133b1ef7
BLAKE2b-256 c070ef557cdf483b9c1242429af08d63e7392976f61e25b0d1cbecb0666d0349

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.173-py3-none-macosx_11_0_arm64.whl:

Publisher: python-release.yml on reggie-db/dbx-tools

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.182

5 files

0.6.181

5 files

0.6.180

5 files

0.6.179

5 files

0.6.177

5 files

0.6.176

5 files

0.6.175

5 files

0.6.174

5 files

This release

0.6.173 This release

5 files

0.6.172

5 files

0.6.171

5 files

0.6.168

5 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