dazapiz
The Azure helpers azure-identity lacks: your az login in Python,
carried into Spark, DuckDB and any Azure REST API, with one small package
on top of the official SDK. Documentation:
https://pedrobtz.github.io/py-dazapiz/.
- Spark from your
az login. Neither PySpark nor the Azure SDK turns anaz logininto Spark's ABFS settings;spark_storage_conf()finds the refresh token the Azure CLI keeps and writes the keys. - A REST client for one API.
ApiClientis a typedhttpxclient: bearer token, retries, parsing, and errors that never show a secret. - DuckDB secrets from any credential, scoped per storage account.
- Sign-in that works in a browser-hosted IDE: device code, browser, and a pasted-code flow for code-server and cloud notebooks.
Where azure-identity or msal already does a job, dazapiz calls it.
Installation
From PyPI:
pip install dazapiz
It needs Python 3.10 or later. The duckdb extra adds the DuckDB secrets:
pip install "dazapiz[duckdb]"
The development version installs from GitHub:
pip install git+https://github.com/pedrobtz/py-dazapiz.
A first run
from pyspark.sql import SparkSession
from dazapiz import az_login, spark_storage_conf, refresh_token_from_az_cli
az_login() # device code, once per machine
conf = spark_storage_conf(refresh_token=refresh_token_from_az_cli())
spark = SparkSession.builder.config(map=conf).getOrCreate()
- Get started:
install,
az login, Spark, and the other ways to authenticate. - REST client: a typed client for one Azure-protected API, with a Petstore example.
- DuckDB: Azure secrets from any credential, scoped per account.
- Browser-hosted sign-in: device code, browser, and the pasted-code flow for code-server.
- Testing your API client:
an
ApiClientsubclass tested in CI without Azure. - The reference lists every public name.
Status
0.1.0 is the first release; the interface may still change before 1.0.
Changes are listed in
CHANGELOG.md.
The design is in
.agents/design.md
and the order of work in
.agents/roadmap.md.
License
MIT
Metadata
Release files for dazapiz 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dazapiz-0.1.0.tar.gz | 115.7 kB | With provenance | Details for dazapiz-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dazapiz-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dazapiz-0.1.0-py3-none-any.whl |
Total release size: 166.0 kB
Release files / dazapiz-0.1.0.tar.gz
| Download URL | dazapiz-0.1.0.tar.gz |
|---|---|
| Size | 115.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b53f7b9a35eed48a062d82e9b8b03b2e121613ace8a479cb7f09663ab377bbf
|
|
BLAKE2b-256 checksum How to use checksums |
a304827891dec1b05e8ec6c7bb1df332fedd600bdc3e13959f1a7b4490883063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logRelease files / dazapiz-0.1.0-py3-none-any.whl
| Download URL | dazapiz-0.1.0-py3-none-any.whl |
|---|---|
| Size | 50.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcbdfc2ea6af041bdb071a6aa3ce076191a4113da817a954c34db003d04166a1
|
|
BLAKE2b-256 checksum How to use checksums |
6929debda51d08da06a85690b518d7a8d76e3deb9adac2474aa17c64d388173c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 26, 2026.
Transparency logSecurity for dazapiz 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for dazapiz-0.1.0.tar.gz
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 Nov 26, 2026.
Transparency logA 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.