semvec/pypi-packages huggingface dataset:
beryl-events-utils 2.0.1
A set of async utils for Beryl's Events system
License: MIT
Requires Python: >=3.7,<4.0

<div align=center>

# Beryl-Events-Utils

![PyPI](https://img.shields.io/pypi/v/beryl-events-utils?label=PyPi&logo=pypi&logoColor=white) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/beryl-events-utils?label=Python&logo=python&logoColor=white) ![PyPI - License](https://img.shields.io/pypi/l/beryl-events-utils?label=License&logo=pypi&logoColor=white)

A set of async utils for Beryl's Events system

<div align=left>

# Info

Beryl, which is a discord bot offers a events system, where users can set an event and then later check how much more days is there left. The events system is powered off of PostgreSQL and thus requires an PostgreSQL server in order to use. These are the base corountines used by Beryl.

# Installation

## Pip

```sh
pip install beryl-events-utils
```

## Poetry

```sh
poetry add beryl-events-utils
```

# License

MIT
pi-touch 0.1.0
Control PI Touch Screen with GPIO
License: MIT
Requires Python: >=3.9.0


# PiTouchScreen

Programmatically control the [Raspberry Pi Touch Display](https://www.raspberrypi.com/products/raspberry-pi-touch-display/)

## Features
<details><summary><strong>GPIO Control</strong></summary>

With a button connected to pin 17:
- Cycle brightness between 50, 100, 150
- Long-press button for 1 second to turn off the screen

```bash
pi-touch-screen pi-touch-screen --channel 17 -bl 50 -bl 100 -bl 150 --power-sec 1 
```
</details>

<details><summary><strong>Thread-safe</strong></summary>
- `BacklightManager` provides thread-safe attribute access and thread-safe sysfs read/writes
- Reading or setting values requires owning a lock
- Prevents race conditions from threaded callbacks
</details>

<details><summary><strong>Install as Service</strong></summary>

- Save `pi_touch_screen_service.service` to `$HOME/.config/systemd/user/pi_touch_screen_service.service`
- Run ```systemctl --user edit pi_touch_screen_service``` and modify `ExecStart` to use your desired parameters
- Run ```systemctl --user enable pi_touch_screen_service``` to run the service at startup
</details>
pi-touch-screen 0.1.0
Control PI Touch Screen with GPIO
License: MIT
Requires Python: >=3.9.0


# PiTouchScreen

Programmatically control the [Raspberry Pi Touch Display](https://www.raspberrypi.com/products/raspberry-pi-touch-display/)

## Features
<details><summary><strong>GPIO Control</strong></summary>

With a button connected to pin 17:
- Cycle brightness between 50, 100, 150
- Long-press button for 1 second to turn off the screen

```bash
pi-touch-screen pi-touch-screen --channel 17 -bl 50 -bl 100 -bl 150 --power-sec 1 
```
</details>

<details><summary><strong>Thread-safe</strong></summary>
- `BacklightManager` provides thread-safe attribute access and thread-safe sysfs read/writes
- Reading or setting values requires owning a lock
- Prevents race conditions from threaded callbacks
</details>

<details><summary><strong>Install as Service</strong></summary>

- Save `pi_touch_screen_service.service` to `$HOME/.config/systemd/user/pi_touch_screen_service.service`
- Run ```systemctl --user edit pi_touch_screen_service``` and modify `ExecStart` to use your desired parameters
- Run ```systemctl --user enable pi_touch_screen_service``` to run the service at startup
</details>