Metadata-Version: 2.1
Name: python-hue-v2
Version: 0.0.1
Summary: A python library to control the Philips Hue lighting system.
Project-URL: Documentation, https://github.com/unknown/python-hue-v2#readme
Project-URL: Issues, https://github.com/unknown/python-hue-v2/issues
Project-URL: Source, https://github.com/unknown/python-hue-v2
Author-email: Yichen Zhao <njuzhaoyichen@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Requires-Dist: requests>=2.30.0
Description-Content-Type: text/markdown

# Python Hue V2

Python library to control the Philips Hue lighting system for Hue-V2 API.

## Features

- Design for Hue API 2.0

## Usage

## High Level Control

### Simple Example

```python
import time
from python_hue_v2 import Hue, BridgeFinder

finder = BridgeFinder()
time.sleep(1)  # wait for search
# Get server by mdns
host_name = finder.get_bridge_server_lists()[0]  # Here we use first Hue Bridge

# or hue = Hue('ip address','app-key')
hue = Hue(host_name, 'hue app key')  # create Hue instance

lights = hue.lights

for light in lights:
    print(light.on)
    light.on = True
    light.brightness = 80.0
```