semvec/pypi-packages huggingface dataset:
simplehdlc 0.1.0
A python implementation of the simplehdlc packet encoder/parser
Requires Python: >=3.6

# python-simplehdlc
A python implementation of the simplehdlc parser/encoder. More information about the packet structure can be found at [https://github.com/jeremyherbert/simplehdlc](https://github.com/jeremyherbert/simplehdlc).

Only python 3.6+ is supported.

License is MIT.

### Installing

You can install this package using `pip`:

`pip install simplehdlc`

or by cloning this git repository and running:

`python setup.py install`

### Usage

```python
from simplehdlc import SimpleHDLC

# note that encode is a class method
encoded = SimpleHDLC.encode(b'abcdefg')

def success_callback(payload: bytes):
    print("success:", payload)

hdlc = SimpleHDLC(success_callback, max_len=1024)
hdlc.parse(encoded)  # will print "success: b'abcdefg'" via the callback
```
leglight 0.2.0
A Python module designed to control the Elgato brand Lights.
Requires Python: >=3.6
Keywords: elgato,key light,corsair

# pyleglight

A Python module designed to control the [Elgato](https://www.elgato.com/en) brand Lights. For use in automation or in lieu of their [Control Center app](https://www.elgato.com/en/gaming/downloads) (when on a non-supported platform).

## About the lights
As of this writing, the only compatible hardware is the [Elgato Key Light](https://www.elgato.com/en/gaming/key-light). This hardware operates on Wifi only, anounces itself on the network via [mDNS](https://en.wikipedia.org/wiki/Multicast_DNS) and is controllable via JSON [REST](https://en.wikipedia.org/wiki/Representational_state_transfer). As the lights are not-multicolored the only available controls are on/off, brightness (0-100), and [color temperature](https://en.wikipedia.org/wiki/Color_temperature#Categorizing_different_lighting) (from 3000k to 7000k)

## Examples
When you know the IP, you can do things manually:
```
>>> import leglight
>>> myLight = leglight.LegLight('10.244.244.139',9123)
>>> print(myLight)
Elgato Light ABC12345689 @ 10.244.244.139:9123
>>> vars(myLight)
{'address': '10.244.244.139', 'port': 9123, 'name': '', 'server': '', 'productName': 'Elgato Key Light', 'hardwareBoardType': 53, 'firmwareBuildNumber': 192, 'firmwareVersion': '1.0.3', 'serialNumber': 'ABC12345689', 'display': 'Key Light One'}
>>> myLight.on()
>>> myLight.brightness(14)
>>> myLight.color(3500)
>>> myLight.off()
>>> 
```

Or you can use the discovery module:

```
>>> import leglight
>>> allLights = leglight.discover(2)
>>> print(allLights)
[Elgato Light ABC987654321 @ 10.244.244.142:9123, Elgato Light ABC12345689 @ 10.244.244.139:9123]
>>> for light in allLights:
...     light.on()
...     light.brightness(5)
...     light.color(3400)
```

## License
MIT

## Copyright
Elgato, Key Light and other product names are copyright of their owner, CORSAIR.
pyevo 0.0.1
Package for applying evolutionary algorithms to various problem models.
Requires Python: >=3.6

*Package for applying evolutionary algorithms to various problem models. The premise is to provide a standardized model 
format and algorithm implementation that can be used to easily apply a wide variety of algorithms to solve a given 
problem.*

![license](https://img.shields.io/badge/license-GPLv3-informational)
![version](https://img.shields.io/badge/version-v0.0.1-informational)