GlueHome Python Package
This Python package provides a client for interacting with the GlueHome API, allowing you to control and monitor your GlueHome smart locks.
Features
- Authentication with GlueHome API
- Retrieve information about all your locks
- Get details for specific locks
- Control locks (lock/unlock)
Installation
You can install the GlueHome package using pip:
pip install gluehome
Usage
Here's a quick example of how to use the GlueHome package:
from gluehome import GlueAuth, GlueClient
# Authenticate and get API key
auth = GlueAuth("your_username", "your_password")
api_key = auth.issue_api_key()
# Create a client
client = GlueClient(api_key)
# Get all locks
all_locks = client.get_all_locks()
# Get a specific lock
lock = client.get_lock("lock_id")
# Get multiple specific locks
locks = client.get_locks(["lock_id1", "lock_id2"])
# Control a lock
lock.lock() # Lock the door
lock.unlock() # Unlock the door
# Update lock information
lock.update()
# Get lock information
print(f"Lock: {lock.description}")
print(f"Status: {lock.connection_status}")
print(f"Battery: {lock.battery_status}%")
print(f"Last event: {lock.last_lock_event.event_type} at {lock.last_lock_event.event_time}")
Configuration
The package requires an API key for authentication. You can either:
- Provide your GlueHome username and password to
GlueAuthto generate an API key. - Use an existing API key directly with
GlueClient.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This package is not officially associated with or endorsed by GlueHome.
Metadata
Release files for gluehome 0.1.2
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 |
|---|---|---|---|---|
| gluehome-0.1.2.tar.gz | 6.4 kB | Without provenance | Details for gluehome-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gluehome-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for gluehome-0.1.2-py3-none-any.whl |
Total release size: 13.3 kB
Release files / gluehome-0.1.2.tar.gz
| Download URL | gluehome-0.1.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26bf2fb64530437ec18a59fbbccd600cf8658c22bf6c9929bbc47fbe7c758bbb
|
|
BLAKE2b-256 checksum How to use checksums |
5cf79bc6fb78156715e45a27a10754f0909ad36ddccb1cbe6ade9303cffb839c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / gluehome-0.1.2-py3-none-any.whl
| Download URL | gluehome-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21be111f5d7e58913a95a93b5b2d8e78334e9e19f83885ec4f52ab5243016bde
|
|
BLAKE2b-256 checksum How to use checksums |
bae3756f98f05471b83bebcfae3aaf482f602070839821fbe07ee9732e45c980
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for gluehome 0.1.2
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.