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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.39+ ARM64

dbx_tools_auth-0.6.176-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.176-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.176-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.176-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.176-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5fd2a11c945ef48e2f56ae373b93c2fc4c7250bd3b605bffb2ad04b7cf7920f6
MD5 281b81f84c53c82d928ca6ea31488588
BLAKE2b-256 7a6635c89db84617b23649decbf114264ef64882efbbec6c3253b832169ae565

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.176-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 5c96c25206d4e82cd711e43ede7b7587f4cd02f12bfd6acfe6feec9ed1b00f4a
MD5 f0b935bb5bf27439774686d7ee7348ad
BLAKE2b-256 b123b7feea959c75a4e3a987cf9d59afa040b6bdf01aa36fb49e0f095ff41783

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.176-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 f39efa93e78dfde230d4e28e0a56db673999f23806ad69c2387b8a7b110fc021
MD5 7fc26a434dcd72e55652a42b756af6b0
BLAKE2b-256 a3c011cb0023121d3964ebf9e13ccc13dc1b02b3a05382b76bf375075380ba3c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.176-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9ae8aec0cb32b6e2a88dbbeb2c904f3121f1f9ef28092be6cfe02a55e5aa3dec
MD5 69771d06eb15fe6525351db34608e9dd
BLAKE2b-256 1eef3fc54acb1cceb25d9d56d13e691a6709ee7df9d91d9b2cabe528d3741b95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.176-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6157310460c67b689163aa99cf11463b9f15302e75d1d020076f3afc6ccfbf20
MD5 7c3f1791603cf6b82847438be6c3d1b6
BLAKE2b-256 59cab09d888d519e760994ff5a370a26d6e1f4982a48b74b2f8cd88da4b41a31

See more details on using hashes here.

Provenance

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

This release

0.6.176 This release

5 files

0.6.175

5 files

0.6.174

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