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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.39+ ARM64

dbx_tools_auth-0.6.179-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.179-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.179-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.179-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.179-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e9619892cb3868c31c39762aa9d12be054bc4e02644bed422d73570047d21641
MD5 9c29ed01f586e956b8559bc930770d49
BLAKE2b-256 d00790314981be41241c2b48a963367aee7a2eebab862ecb4053cf767cd0a05a

See more details on using hashes here.

Provenance

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

Publisher: 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.179-py3-none-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.179-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 d79eda7160515d2e177b56d97edbc01dab97797855e2788319cca2ee1cbb459f
MD5 4b009c06f101458e1d94ff1140a86410
BLAKE2b-256 3a791fd255bf7339a8d2c4d83ede7d5ee54fd0143d1a75d2bb9a4ac0be11ba40

See more details on using hashes here.

Provenance

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

Publisher: 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.179-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.179-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 b1358812c4ca7655436582220a10fba658adb3c27ec359e361367fd3c8f60384
MD5 bbd4da97ed6368d228e7ba4ad8d30180
BLAKE2b-256 c7498ea59a1326748e4de518a565df49b615653109d9b9b34050b44c1776d5a7

See more details on using hashes here.

Provenance

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

Publisher: 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.179-py3-none-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.179-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a2774ebd3bce672828f7f57dd010eedc9c513cbdd02f1a97ff19c24271db52a7
MD5 cfc2431205d11a84840b4ea3c14f1538
BLAKE2b-256 b9e65280e8da3461da354bf2469f05973ff932595cda5afa04bbe741f4d33021

See more details on using hashes here.

Provenance

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

Publisher: 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.179-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.179-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0df034bd6257aa828fa3dadd730323dda61418fd6a48108e47bb442a7e02926a
MD5 49b3766cb62c16c43af3304d53084117
BLAKE2b-256 82e6bbda5005a5319aa1aadb7a3f20b5362f3198a63810cf7c381d721e6153fb

See more details on using hashes here.

Provenance

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

Publisher: 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

This release

0.6.179 This release

5 files

0.6.177

5 files

0.6.176

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