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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.39+ ARM64

dbx_tools_auth-0.6.168-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.168-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.168-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.168-py3-none-win_amd64.whl.

File metadata

  • Download URL: dbx_tools_auth-0.6.168-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dbx_tools_auth-0.6.168-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e854ee8fca152cc39b246892b0a2fc3f7d47612adec18bd6e88f77fbc7e0772e
MD5 ece3e6b35dde29e0551f83dc6aca10ab
BLAKE2b-256 869772f95da728f683dcb65742ee783a70fda759c3ebc969b06c3c7eec5633a5

See more details on using hashes here.

File details

Details for the file dbx_tools_auth-0.6.168-py3-none-manylinux_2_39_aarch64.whl.

File metadata

  • Download URL: dbx_tools_auth-0.6.168-py3-none-manylinux_2_39_aarch64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3, manylinux: glibc 2.39+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dbx_tools_auth-0.6.168-py3-none-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 b715193f1b67f46d9a03502488c643e3d73fb66b1177b5d9836f7802fa1451f8
MD5 93dda6199df2403aad17ccebee71bf0b
BLAKE2b-256 1a9d4176096a4d297decc5d6aeea15f07529341c64a1eea2695f3f3e967a3337

See more details on using hashes here.

File details

Details for the file dbx_tools_auth-0.6.168-py3-none-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: dbx_tools_auth-0.6.168-py3-none-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dbx_tools_auth-0.6.168-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 9c096e3f1ab68feb303d0ddc8ce76ee41b0a1ce3ac5da8fbc95d64b2c0ae59ef
MD5 549273992366bd2e38fa5194c5c33345
BLAKE2b-256 52d976003e0702a541f31f35aa6f1756816722c3cd06e3efc9372098c7bd8b97

See more details on using hashes here.

File details

Details for the file dbx_tools_auth-0.6.168-py3-none-macosx_13_0_x86_64.whl.

File metadata

  • Download URL: dbx_tools_auth-0.6.168-py3-none-macosx_13_0_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3, macOS 13.0+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dbx_tools_auth-0.6.168-py3-none-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5026dab2979f7d986cc34843d882e5c0e40943a8ee28ce1ab4c477a08c1e9a3f
MD5 09d72c612d2a09b54c696e820b547f48
BLAKE2b-256 ac8039fda0a892f65a365f3f4f5f7277f0c862159a2914310b98c0d1c098fbc8

See more details on using hashes here.

File details

Details for the file dbx_tools_auth-0.6.168-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: dbx_tools_auth-0.6.168-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dbx_tools_auth-0.6.168-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1228309f382f109ab8a663c711923958980636c71d458baab473348c70ab032
MD5 44dd6e7e558ad95edadb8c07116eb873
BLAKE2b-256 ce0698f0ec02b25015128398d18ec1dae78f07f621b77142818a4e6afc9c3afb

See more details on using hashes here.

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

0.6.174

5 files

0.6.173

5 files

0.6.172

5 files

0.6.171

5 files

This release

0.6.168 This release

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