semvec/pypi-packages huggingface dataset:
Starfive.GPIO 1.2.3
A module to control Starfive GPIO ports
License: MIT
Keywords: Starfive GPIO

This package provides a Python module to control the GPIO on a Starfive.
test
N

Change Log
==========

0.2.0
-------
- Support Sense Hat (B)
  A class TH is defined, and the  Methods list of class TH is as follows: 
  start(), stop(), reset(), getHum(), getTem()
  The demo code, please see ./source/Sense_Hat.py
bond-api 0.1.18
Asynchronous Python wrapper library over Bond Local API
License: MIT
Keywords: bond local api async

# bond-api
Asynchronous Python wrapper library over Bond Local API

## Installation

From PyPi:

```bash
pip3 install bond-api
```

## Library Usage
```python3
import asyncio

from aiohttp import ClientResponseError, ClientConnectorError

from bond_api import Bond, Action


async def main():
    """Example of library usage."""
    
    bond = Bond("[your ip or hostname here]", "[your bond API token here]")

    try:
        print("Version:")
        print(await bond.version())

        print("Device IDs:")
        device_ids = await bond.devices()
        print(device_ids)

        print("Devices:")
        devices = await asyncio.gather(*[bond.device(device_id) for device_id in device_ids])
        print(devices)

        print("Devices Properties:")
        properties = await asyncio.gather(*[bond.device_properties(device_id) for device_id in device_ids])
        print(properties)

        print("Devices State:")
        state = await asyncio.gather(*[bond.device_state(device_id) for device_id in device_ids])
        print(state)

        print("Turn on fan!")
        await bond.action("[your fan device ID here]", Action.turn_on())

        print("Change fan speed!")
        await bond.action("[your fan device ID here]", Action.set_speed(2))

        print("Turn off fan!")
        await bond.action("[your fan device ID here]", Action.turn_off())
        
    except ClientResponseError as x:
        print("Client response error: ", x)
    except ClientConnectorError as x:
        print("Client connector error: ", x)


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
```