semvec/pypi-packages huggingface dataset:
endstech-shared 0.0.4
Shared code used by endstech

# endstech_shared

![GitHub License](https://img.shields.io/github/license/jwaggy/endstech_shared)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/jwaggy/endstech_shared/main)
![PyPI - Downloads](https://img.shields.io/pypi/dm/endstech-shared)


General reusable utilities for anyone.
SysBenchInfo 0.1.2
A package to get system information and benchmark CPU and GPU for all operating systems
Requires Python: >=3.10

# SysBenchInfo

`sysbenchinfo` is a Python package designed to provide comprehensive details about your system's CPU, GPU, memory, and operating system. Additionally, it includes basic benchmarks for both the CPU and GPU, with support for retrieving specific system parameters upon request.

## Features

- Obtain in-depth CPU details such as architecture, model, count, and frequency.
- Get information about GPUs including name, load, memory usage, and temperature.
- Access memory statistics including virtual and swap memory.
- Retrieve OS details including system, node, release, version, machine, and processor.
- Run simple benchmarks to measure CPU and GPU performance.
- Fetch specific parameters of the system based on user requests.

## Installation

To install `sysbenchinfo`, use pip:

```sh
pip install SysBenchInfo
```

## Usage

After installing the `sysbenchinfo` package, you can use it to gather and display system information.

### Using `get_system_info`

You can retrieve and print system information with the following code:

```python
from sysbenchinfo import get_system_info

# Get system information
info = get_system_info()

# Print system information
print(info)
reacttrs 0.2.1
Attributes with superpowers
Requires Python: >=3.8

# reacttrs

Reactive attributes, initially extracted out from [Textual](https://textual.textualize.io/guide/reactivity), now a fork of [Declare](https://github.com/willmcgugan/declare).

```py
from reacttrs import Int, Str


class Foo:

    name = Str("Paul")
    age = Int(34)
    birth = Int(1990)

    @name.watch
    def _watch_name(self, old: str, new: str):
        print(f"{old=}, {new=}")

    @age.validate
    def _validate_age(self, value: int) -> int:
        return 2024 - self.birth

foo = Foo()
foo.name = "John"  # old='Paul', new='John'
foo.name = "Steve"  # old='John', new='Steve'

print(foo.age)  # 34
foo.birth = 1991
foo.age = 34
print(foo.age)  # 33
```
InstantLight 1.2.0
Python SDK for InstantLight
Requires Python: >=3.6

# InstantLight-sdk

## Installation

Install the SDK using pip:

```bash
pip install InstantLight
```

## Usage

Hereâ€™s an example of how to use the InstantLight SDK to make an API call and handle the response:

```bash
from InstantLight.sdk import InstantLightSDK
from PIL import Image
import base64
from io import BytesIO

# Initialize the SDK
sdk = YourSDK(
    base_url='https://api.fotographer.ai/instantLight',
    api_key='your_api_key',
    email='your_email@example.com'
)

# Convert images to base64
def image_to_base64(image_path):
    with Image.open(image_path) as img:
        buffered = BytesIO()
        img.save(buffered, format="PNG")
        return base64.b64encode(buffered.getvalue()).decode('utf-8')

# Prepare the image data
foreground_image64 = image_to_base64('path_to_foreground_image.png')
background_image64 = image_to_base64('path_to_background_image.png')

# Define the image data
image_data = {
    "foreground_image64": foreground_image64,
    "background_image64": background_image64,
    "prompt": "example prompt",
    "mode": 2,
    "prompt_strength": 0.8,
    "inf_factor": 1.00,
    "mask_strength": 0.5,
    "image_width": 1400,
    "image_height": 1400,
    "additional_prompt": "",
    "negative_prompt": "",
    "lights": []
}

# Make the API call
response = sdk.image_generation.get_image_gen(image_data)

# Print the response keys for debugging
print("Response Keys:", response.keys())

# Print the keys at all levels of the response for debugging
for key, value in response.items():
    if isinstance(value, dict):
        print(f"Response[{key}] Keys: {value.keys()}")

# Save the image and mask image if they exist in the response
if 'image' in response:
    image_data = response['image']
    image_bytes = base64.b64decode(image_data)
    image = Image.open(BytesIO(image_bytes))
    image.save("output_image.png")
    print("Image retrieved and saved as output_image.png.")
    
    if 'mask_image' in response:
        mask_data = response['mask_image']
        mask_bytes = base64.b64decode(mask_data)
        mask_image = Image.open(BytesIO(mask_bytes))
        mask_image.save("output_mask_image.png")
        print("Mask retrieved and saved as output_mask_image.png.")
else:
    print("Response does not contain 'image'")
```

Make sure to update `your_api_key` and `your_email@example.com` with the actual values in the example usage section.
shxd 0.1
A CLI to extend shell functionality for developers.
Requires Python: >=3.6


# shxd: shell xtend for developers
A cli to extend shell functionality for developers.

# Installation

```bash
pip install shxd
```

## Contributors


<a href="https://github.com/luiisp/shxd/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=luiisp/shxd" />
</a>
versions-kaneryu 1.0.1
Simple version class
Requires Python: >=3.8

# Versions
![project](https://github.com/kaneryu/versions/actions/workflows/python-app.yml/badge.svg) [![codecov](https://codecov.io/github/KaneryU/versions/graph/badge.svg?token=YHXU7KB3PK)](https://codecov.io/github/KaneryU/versions)
### Don't use this, There's probably better solutions out there.

This is a simple class I use that stores a version number.

It can compare to other versions, and supports different release channels (alpha, beta, release). Alphas and Betas can have a number attached to them, for example 0.5.6-alpha2, or 1.6.0-beta3. Releases are indicated by a *lack* of a channel, and therefore can't have a number attached to them (1.0.0 is a Release).


It can also create "warnings" for versions that are too old, or too new. This is useful for when you want to warn users that they are using an old version of your software, or that they are using a version that is too new for the server to support.

The full list of features are avalable by reading the code. Trust me, it's simple.

I'm putting this into a package because I use it in multiple projects.