pydanalock-cloud
Unofficial Python client for the Danalock cloud API: OAuth2 authentication, device listing, and retrieval of the per-device key material (login token blob, broadcast key) used by BLE clients such as pydanalock-ble.
Disclaimer. This project is unofficial and is not affiliated with, endorsed by, or sponsored by Danalock AS or Poly-Control. It is built for interoperability with devices you own. Use it at your own risk; only control devices you are authorized to control.
Install
pip install pydanalock-cloud
Status
OAuth2 authentication, device/key retrieval, forced key refresh, client
lifecycle, and latest firmware lookup are implemented (specs 0001–0006);
0.x — the API may still change. See specs/ for the
specifications and their status.
Capabilities:
- OAuth2 authentication (refresh + password grants) with pluggable token storage — spec 0001
- Device listing and key retrieval with automatic refresh — spec 0002
- Public sync + async client API (
DanalockCloud,AsyncDanalockCloud,DeviceKey) — spec 0003 - Client lifecycle close methods — spec 0004
- Forced key refetch (
get_key(..., force=True)) — spec 0005 - Latest firmware lookup (unauthenticated firmware service; the download URL in the result is a short-lived signed link and must not be persisted) — spec 0006
Requirements
- Python >= 3.11
- httpx >= 0.27
Development
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/ruff check .
.venv/bin/ruff format --check .
.venv/bin/mypy
.venv/bin/pytest -m "not live"
Live tests against the production API stay behind the live marker and are
run manually only, with credentials from the environment
(DANALOCK_USERNAME, DANALOCK_PASSWORD).
License
Metadata
Release files for pydanalock-cloud 0.5.1
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 |
|---|---|---|---|---|
| pydanalock_cloud-0.5.1.tar.gz | 32.6 kB | With provenance | Details for pydanalock_cloud-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydanalock_cloud-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for pydanalock_cloud-0.5.1-py3-none-any.whl |
Total release size: 46.9 kB
Release files / pydanalock_cloud-0.5.1.tar.gz
| Download URL | pydanalock_cloud-0.5.1.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad3ba262b495e5381e306fe49aab4b9abb90e14f01cb4245c2d36a17a6b0f696
|
|
BLAKE2b-256 checksum How to use checksums |
390229b86981bfa0686f44347815b177b87c877b646acc2f4e3cd71ec1844d2d
|
| 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 10, 2026.
Transparency logRelease files / pydanalock_cloud-0.5.1-py3-none-any.whl
| Download URL | pydanalock_cloud-0.5.1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa7ca6d56e2904ac862c71876f04d7f0f667a3c47e59a745a258ac2ac91f8f4b
|
|
BLAKE2b-256 checksum How to use checksums |
b7312b8a52f486cd1f0cb66cd1cc8daffb1193ffce8dcc32211dbdede76fdf75
|
| 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 10, 2026.
Transparency logSecurity for pydanalock-cloud 0.5.1
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 pydanalock_cloud-0.5.1.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 Sep 10, 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.