semvec/pypi-packages huggingface dataset:
flakely 2024.1.31
Signed snowflake ID's
License: MIT
Requires Python: >=3.10,<4.0

# Flakely

Allows for the generation and validation of SHA256 signed snowflakes.

## Installation

```shell
pip install flakely
```

## Usage

The `flakely.Flakely` class handles generation and validation of the signed snowflakes. It accepts the following arguemnts:

- `device: int` a device ID that is encoded into each snowflake
- `process: int` a process ID that is encoded into each snowflake
- `secret: str | bytes` used to generate unpredictable signature hashes

`Flakely.generate() -> int`

Generates a new signed snowflake and returns it as an `int`.

`Flakely.generate_bytes() -> bytes`

Generates a new signed snowflake and returns it as a `bytes` object.

`Flakely.validate(snowflake: int | bytes) -> bool`

Checks that a snowflake's signature is valid for the payload.

`Flakely.get_signature(flake: bytes) -> bytes`

Generates a signature for the snowflake payload as SHA256 digest.

`Flakely.get_tick() -> int`

Returns an integer to use as the timestamp.
frameless-dialog 0.2.0
A frameless QDialog widget
License: MIT

# Frameless Dialog

A frameless QDialog widget.

## Description

This frameless QDialog widget can be used as a direct replacement for the standard QDialog within the PyQt6 library.

## Getting Started

### Dependencies

* PyQt6
* Windows

### Installing

* pip install frameless_dialog


## Authors

Philip Messner [rxphil35@gmail.com](mailto:rxphil35@gmail.com)


## Version History (see changelog for more detail)

* 0.2
  * (added) Defined themes to style the objects inside the dialog 

* 0.1
    * Initial Release

## License

This project is licensed under the MIT License - see the LICENSE.txt file for details
pylgnetcast 0.3.9
Client for the LG Smart TV running NetCast 3 or 4.
License: MIT
Requires Python: >=3.6

# Python LG Netcast

A Python 3 library and command line tool to control LG Smart TV running NetCast 3.0 (LG Smart TV models released in 2012) and NetCast 4.0 (LG Smart TV models released in 2013) via TCP/IP.

This library was forked from [wokar/pylgnetcast](https://github.com/wokar/pylgnetcast) and is primarily being developed with the intent of supporting [home-assistant](https://github.com/home-assistant/home-assistant).

## Dependencies

 * Python 3
 * [requests](https://pypi.python.org/pypi/requests) package.

## API Usage

```python
from xml.etree import ElementTree
from pylgnetcast import LgNetCastClient, LG_COMMAND, LG_QUERY

with LgNetCastClient('192.168.1.5', '889955') as client:
    client.send_command(LG_COMMAND.MUTE_TOGGLE)
    data = client.query_data(LG_QUERY.VOLUME_INFO)
    if data:
        print(ElementTree.tostring(data[0], encoding='unicode'))
```

## Command Line Tool
PyLgNetCast also provides a simple command line tool to remote control a TV.

The tool needs a pairing key to be allowed to send commands to your TV.
To get the pairing key just start the tool while your TV is on:
```sh
python -m pylgnetcast --host <IP of your TV>
```
This will display the pairing key on your TV.

To retrieve status information from your TV start the tool like:
```sh
python -m pylgnetcast --host <IP of your TV>  --pairing_key <pairing key of your TV>
```
This will display information about the current channel, volume, 3D mode, etc. retrieved from your TV.

If you want to send a command to your TV, for instance to turn the volume up, check the list of available commands in the pylgnetcast.py file.
The class LG_COMMAND defines all supported commands and volume up would be defined as 24.
```sh
python -m pylgnetcast --host <IP of your TV>  --pairing_key <pairing key of your TV> --command 24
```