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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.39+ ARM64

dbx_tools_auth-0.6.182-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.182-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.182-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.182-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.182-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 263cbfee6fd6ff0092b340a987270c78af967b60bb223eae85fafa5497dbeed1
MD5 f1a08811034ef98fc9585b6655f0d270
BLAKE2b-256 b63351a5980cdb2e7914a17424517712b4bd30603a08616d79050d7eb75449d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.182-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 7eb11c1e54fcd9d9bff48c37412da882dd8080180e95efd1588889f2c0c6ba23
MD5 3b16735b23f4595ad665dc2976092379
BLAKE2b-256 a44721c951c40542c6771f5d157ed120a4c6300da6db8b31158b1fd0bf2b60a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.182-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 8a3bb00c565ea14184040c17601c153cf02915b6da016f8eca28fbaedcab80dc
MD5 29b8756627909cde44040c06c559305d
BLAKE2b-256 9eb6ba6126958436add1c1b649fce119ba8e2860d4a7495e69a1a641e5ad378f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.182-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d71fddc359be9f873b954a3a0d7b44554f85c5ec55d87f18a79f1521cf87d664
MD5 54938c272c2dca6d7c06408303093afa
BLAKE2b-256 4170d2eb196c5245c17cafccf4a6c91fba92edf7aed70bdcdd2e54ea3b5a618a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.182-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7b445e93d4184071a540c0666d7ca3a1bcc2d35ed30af3c4368e2dd85f159a7
MD5 79f1fb191a0fd68b501bbd728e799e74
BLAKE2b-256 9967ea5e5785333fd2c3cc45b8d7f2659cddfa20949a2812ea7f86ecb10da18e

See more details on using hashes here.

Provenance

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

This release

0.6.182 This release

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

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