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.174-py3-none-win_amd64.whl (2.9 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.39+ ARM64

dbx_tools_auth-0.6.174-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.174-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.174-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.174-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.174-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 01bd3671355c7c5a4e298f83d0a5329a2f85dad26ae2ce578657c9a934254ba6
MD5 d8ae342d39063c6a0a9befb802dac1e4
BLAKE2b-256 fc20a5dcfc4fdddb6bd248a14906373908a64d3811cb2f22033bba41354951cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.174-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.174-py3-none-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.174-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 dea58c05ca6ac207cc5ef482e90e21b719d06fbb52b06582cfbda6564e4b4c10
MD5 9f1086f2b822b1ba764abe2ad036033c
BLAKE2b-256 e8cb973f8452da9dda53d3823f6dfc8fb5d76ab08f76889a1eb3c47c0e669e65

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.174-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.174-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.174-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 a3cba3c6ea535d81ce0600c347602e90178dfb60d8c9f1cd3ef02d165bb6256f
MD5 2abbe90964638221d0a2dbc1d286c65d
BLAKE2b-256 7e382de4a94f9ec7e172578cd241cf9e44a8682558a000ccb6af693f0c0e3131

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.174-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.174-py3-none-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.174-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e8b47080c806a133ecfba7b532b237f2e92902c529e3f6101bf2e168ce105625
MD5 d294ff9754d04b86f9aa6472523ed8fe
BLAKE2b-256 0a93b957e294e708e2b69c251a9fa9c5bf91eec3b63076b7656fafd18f2afe88

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.174-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.174-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.174-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab6e0b1b271d5d18bc93c33f68cad4e406bca0e053a1a74ca0ec7214b5159352
MD5 c0cb063e0e8622ef16c9330e552961d7
BLAKE2b-256 39023121cd7f9c972caf651367ed4391032dd43b6bce1856fecdcfe8bcb20847

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbx_tools_auth-0.6.174-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

This release

0.6.174 This release

5 files

0.6.173

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