semvec/pypi-packages huggingface dataset:
sbcli-md5-check 2.0.0
CLI for managing SimplyBlock cluster


# Simply Block
[![Docker Image Build](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml)

[![Python Unit Testing](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml)


## Install
Add the package repo from AWS CodeArtifact using [awscli](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)

```bash
aws codeartifact login --tool pip --repository sbcli --domain simplyblock --domain-owner 565979732541 --region eu-west-1
```
Install package
```bash
pip install --extra-index-url https://pypi.org/simple sbcli-dev
```

# Components

## Simply Block Core
Contains core logic and controllers for the simplyblock cluster

## Simply Block CLI
Please see this document
[README.md](../main/simplyblock_cli/README.md)


## Simply Block Web API
Please see this document
[README.md](../main/simplyblock_web/README.md)



### local development

FoundationDB requires a client library (libfdb_c.dylib) for the Python bindings to interact with the database.
Depending on the OS architecture, please install the appropriate version from the official github repo

```
wget https://github.com/apple/foundationdb/releases/download/7.3.3/FoundationDB-7.3.3_arm64.pkg
```

setup the code on a management node and the webApp code can be developed by building the `docker-compose-dev.yml` file.


```
sudo docker compose -f docker-compose-dev.yml up --build -d
```
libaxion-dmx 1.0.6
A Python API for controlling Axion Lighting DMX controllers
Requires Python: >=3.9

# Axion DMX API

Axion DMX API is a Python library to interact with the Axion Lighting DMX Controller. This package allows you to control various types of DMX lighting channels, including RGB, RGBW, and RGBWW.

## Installation

Install the package via pip:

```bash
pip install libaxion_dmx
```

## Usage

### Initialize the API

To use the API, create an instance of the `AxionDmxApi` class with the IP address of your DMX controller and the password.

```python
from libaxion_dmx import AxionDmxApi

api = AxionDmxApi(host="192.168.1.2", password="your_password")
```

### Get Name

Get the hostname of the controller:
```python
name = await api.get_name()
if name:
    print(f"Successfully retrieved the name of the controller: {name}")
```

### Authenticate

Authenticate with the controller:

```python
authenticated = await api.authenticate()
if authenticated:
    print("Successfully authenticated with the controller.")
```

### Set Channel Level

Set the level of a specific channel:

```python
await api.set_level(channel=1, level=255)
```

### Get Channel Level

Get the current level of a specific channel:

```python
level = await api.get_level(channel=1)
print(f"Channel 1 level: {level}")
```

### Set Color (RGB)

Set the RGB color of a specific channel:

```python
await api.set_color(channel=1, rgb=(255, 0, 0))  # Set to Red
```

### Set RGBW Color

Set the RGBW color of a specific channel:

```python
await api.set_rgbw(channel=1, rgbw=(255, 0, 0, 255))  # Set to Red with White
```

### Set RGBWW Color

Set the RGBWW color of a specific channel:

```python
await api.set_rgbww(channel=1, rgbww=(255, 0, 0, 255, 128))  # Set to Red with Warm White
```

## Testing

To run the tests for this package, use pytest.

## License

This project is licensed under the MIT License - see the LICENSE file for details.