Bold Smart Lock Python Package
This package implements the Bold Smart Lock API to authenticate and unlock a Bold smart lock. Usage of this API requires a Bold Connect.
Installation
To install dependencies during development run pip install . from the project directory.
Optionally use the included VSCode Dev Container to get a preconfigured envirionment.
Usage
import asyncio
import aiohttp
from bold_smart_lock.auth import AbstractAuth
from bold_smart_lock.bold_smart_lock import BoldSmartLock
class TestAuth(AbstractAuth):
async def async_get_access_token(self) -> str:
return "00000000-0000-0000-0000-000000000000" # Obtain an access token with oAuth2 and specify it here
async def main():
async with aiohttp.ClientSession() as session:
auth = TestAuth(session)
bold = BoldSmartLock(auth)
# Get the devices and device permissions
get_device_permissions_response = await bold.get_device_permissions()
print(get_device_permissions_response)
# Activate the smart lock by device id
remote_activation_response = await bold.remote_activation(12345)
print(remote_activation_response)
# Deactivate the smart lock by device id
remote_deactivation_response = await bold.remote_deactivation(12345)
print(remote_deactivation_response)
asyncio.run(main())
Metadata
Release files for bold-smart-lock 0.3.9
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 |
|---|---|---|---|---|
| bold_smart_lock-0.3.9.tar.gz | 4.3 kB | Without provenance | Details for bold_smart_lock-0.3.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bold_smart_lock-0.3.9-py3-none-any.whl | Python 3 | none | any | Details for bold_smart_lock-0.3.9-py3-none-any.whl |
Total release size: 9.9 kB
Release files / bold_smart_lock-0.3.9.tar.gz
| Download URL | bold_smart_lock-0.3.9.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6413d047d7d55ffade5971d9f969b8c023c08d85f76a0cc3e195d683ac4cab8
|
|
BLAKE2b-256 checksum How to use checksums |
5b53c92e6d8ae5e476f29c1128d8472f59fbf0d5a82f785e983bcb19cd51c2b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / bold_smart_lock-0.3.9-py3-none-any.whl
| Download URL | bold_smart_lock-0.3.9-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58a10af9437b5f5de448e6f3def94dc40e2df25ca79f42a08e7be10ab8f6c6a6
|
|
BLAKE2b-256 checksum How to use checksums |
f267ff873f52f872f8213baac46a6134f34dbe10b7a157674ff80a5f25e7706e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for bold-smart-lock 0.3.9
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.