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.

Metadata

Release files for dbx-tools-auth 0.6.182

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for dbx-tools-auth 0.6.182
File Actions
dbx_tools_auth-0.6.182-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for dbx_tools_auth-0.6.182-py3-none-win_amd64.whl
dbx_tools_auth-0.6.182-py3-none-manylinux_2_39_aarch64.whl Python 3 none Linux glibc 2.39+ ARM64 Details for dbx_tools_auth-0.6.182-py3-none-manylinux_2_39_aarch64.whl
dbx_tools_auth-0.6.182-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details for dbx_tools_auth-0.6.182-py3-none-manylinux_2_35_x86_64.whl
dbx_tools_auth-0.6.182-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for dbx_tools_auth-0.6.182-py3-none-macosx_13_0_x86_64.whl
dbx_tools_auth-0.6.182-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for dbx_tools_auth-0.6.182-py3-none-macosx_11_0_arm64.whl

Total release size: 14.0 MB

Release files / dbx_tools_auth-0.6.182-py3-none-win_amd64.whl

Download URL dbx_tools_auth-0.6.182-py3-none-win_amd64.whl
Size 2.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
263cbfee6fd6ff0092b340a987270c78af967b60bb223eae85fafa5497dbeed1
BLAKE2b-256 checksum
How to use checksums
b63351a5980cdb2e7914a17424517712b4bd30603a08616d79050d7eb75449d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / dbx_tools_auth-0.6.182-py3-none-manylinux_2_39_aarch64.whl

Download URL dbx_tools_auth-0.6.182-py3-none-manylinux_2_39_aarch64.whl
Size 2.7 MB
Tags Linux glibc 2.39+ ARM64 Python 3
SHA-256 checksum
How to use checksums
7eb11c1e54fcd9d9bff48c37412da882dd8080180e95efd1588889f2c0c6ba23
BLAKE2b-256 checksum
How to use checksums
a44721c951c40542c6771f5d157ed120a4c6300da6db8b31158b1fd0bf2b60a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / dbx_tools_auth-0.6.182-py3-none-manylinux_2_35_x86_64.whl

Download URL dbx_tools_auth-0.6.182-py3-none-manylinux_2_35_x86_64.whl
Size 2.9 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8a3bb00c565ea14184040c17601c153cf02915b6da016f8eca28fbaedcab80dc
BLAKE2b-256 checksum
How to use checksums
9eb6ba6126958436add1c1b649fce119ba8e2860d4a7495e69a1a641e5ad378f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / dbx_tools_auth-0.6.182-py3-none-macosx_13_0_x86_64.whl

Download URL dbx_tools_auth-0.6.182-py3-none-macosx_13_0_x86_64.whl
Size 2.9 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
d71fddc359be9f873b954a3a0d7b44554f85c5ec55d87f18a79f1521cf87d664
BLAKE2b-256 checksum
How to use checksums
4170d2eb196c5245c17cafccf4a6c91fba92edf7aed70bdcdd2e54ea3b5a618a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / dbx_tools_auth-0.6.182-py3-none-macosx_11_0_arm64.whl

Download URL dbx_tools_auth-0.6.182-py3-none-macosx_11_0_arm64.whl
Size 2.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d7b445e93d4184071a540c0666d7ca3a1bcc2d35ed30af3c4368e2dd85f159a7
BLAKE2b-256 checksum
How to use checksums
9967ea5e5785333fd2c3cc45b8d7f2659cddfa20949a2812ea7f86ecb10da18e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Security for dbx-tools-auth 0.6.182

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for dbx_tools_auth-0.6.182-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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