Hue API
Async API and CLI tools for interacting with Hue Lights
Documentation: hue-api.nirantak.com
Source: github.com/nirantak/hue-api
Installation
This is an async client to interact with the Hue Bridge API.
The minimum Python version required to run this is 3.8
Install the package using pip:
pip install hue-api
Usage
Follow this link to create a Hue API user if not already known (API reference)
Using the CLI
hue --help
# Get the version of hue-api installed
hue version
# To find your Hue Bridge IP address go to discovery.meethue.com, or run:
hue bridge discover
Using the API
from hue import Bridge, Light
# Create a light object with the light id (number), Bridge IP and user
light = Light(1, ip="your-hue-bridge-ip", user="hue-api-user")
# from an async function
async def main():
await Bridge.discover()
await light.power_on()
# or from a sync context
import asyncio
asyncio.run(Bridge.discover())
asyncio.run(light.power_on())
Changelog
See the file CHANGELOG.md
License
This project is licensed under the terms of the MIT license
Metadata
Release files for hue-api 0.4.8
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 |
|---|---|---|---|---|
| hue-api-0.4.8.tar.gz | 35.7 kB | Without provenance | Details for hue-api-0.4.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hue_api-0.4.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for hue_api-0.4.8-py2.py3-none-any.whl |
Total release size: 47.7 kB
Release files / hue-api-0.4.8.tar.gz
| Download URL | hue-api-0.4.8.tar.gz |
|---|---|
| Size | 35.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a574da59eae20e460682e01876ffa3cedd6c71fe0bbcd0dd6d0489e11f6a3e9
|
|
BLAKE2b-256 checksum How to use checksums |
a40ba5d9c0cdc8c93b780161d3202184008a909eb4e69a514fa69b20442eb868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / hue_api-0.4.8-py2.py3-none-any.whl
| Download URL | hue_api-0.4.8-py2.py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2c18a267752fcbad35d816d47c8c3e5580b5318654996b50a79a5806d7544305
|
|
BLAKE2b-256 checksum How to use checksums |
072cd2d3bc3311c0518934a3cc721abd05af517aee72519a766372ce8f2ef1eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Security for hue-api 0.4.8
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.