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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.39+ ARM64

dbx_tools_auth-0.6.177-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.177-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.177-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.177-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.177-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bf264580b99302fb483add75fe20316aaa4560c28a6e018a3276be68d081dbbc
MD5 eb0090bcde32d93852a830adeda215e3
BLAKE2b-256 f5a4d12b7406814c5d4c893a1231bc7388ec1a15d176d3641d250890e4c3430b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.177-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 830da9475140595322007c19e3b5677ae7f56964066470bffd6a5d2ee151ba4c
MD5 701d594923d98cf201ae35d5963f495e
BLAKE2b-256 4c717df205701774eba375d16c45d9b711274c8956bf9bd9f7ed43437e59fbea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.177-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 be76dd757d4d16c4cb2860e1a85d38a4784249e6843302ba7b3482dc0ff7df23
MD5 3e625d673ad8c4db49c54d4ca73a9bb3
BLAKE2b-256 462c52baff7404bb577977466d70d8982e6d190d60717af5184854b84f8302b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.177-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 21f50f2957d7d37519048c3407b7cc94b62c713ac8ec660dbb42fee854cd1697
MD5 7fe2ac87499799feae32382e5e31c4b6
BLAKE2b-256 5a40b47008db225d2b8e05ca3daf2dca686a377c503b51243e719317c8b35e29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dbx_tools_auth-0.6.177-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7ba44f5a174699a5d2bd9b8766a896cfe3194c7350a9ea710b83f98d9d5ac41
MD5 613f53ea24a8c4b62e53d43513a4d2eb
BLAKE2b-256 91df6581dd9b6dbf52ec9213d1f15a1b3c988c8ea167f185ffb1d3d989ff6cc7

See more details on using hashes here.

Provenance

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

This release

0.6.177 This release

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