semvec/pypi-packages huggingface dataset:
pyAN575 0.1.2
Converts between Microchip's an575 float format and IEEE-754.
Keywords: float,ieee754,AN575

# pyAN575

Converts between Microchip's an575 float format and IEEE-754.


## Usage
```python
from pyAN575.__init__ import An575Float, Ieee754Float

an_from_float = An575Float.from_float(3.141592618)
print(float(an_from_float) == 3.141592618) # True

raw_an = An575Float.from_buffer_copy(b'850beb2a')
print(float(raw_an) == 69.95930480957031) # True
```
upgraded-engineer 0.2.1
Python "API" for interacting with rusty-engine

upgraded-engineer
===
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![PyPI](https://img.shields.io/pypi/v/upgraded-engineer.svg)](https://pypi.org/project/upgraded-engineer/)

`upgraded-engineer` is a Python library for interacting with [`rusty-engine`.](https://github.com/opensight-cv/rusty-engine)

## Installation
`pip install upgraded-engineer`
### Dependencies
* GStreamer (base and bad plugins required for `upgraded-engineer`, more required by `rusty-engine`)
* Open CV (known working with >= 4.0.0, must be compiled with GStreamer support)

## Usage
Importing is simple:
```python
import engine
```
To simply start a new `rusty-engine` process, create an instance of the `engine.Engine` class. You will have to figure out how to write frames into the shared memory yourself. (Note that `rusty-engine` is expecting I420 color, and cannot determine what is being written for itself.)

Alternatively, using `engine.EngineWriter`s provide the `write_frame` method to write "normal" Open CV BGR color frames into shared memory for streaming.
```python
import engine
# see also: engine.GStreamerEngineWriter for a GStreamer-only impl
ew = engine.OpenCVEngineWriter()
# alternately, if we wanted smaller video
ew = engine.OpenCVEngineWriter(video_size=(426, 240, 30)) # width, height, framerate
```
Now, writing frames into shared memory is simple.
```python
def on_new_frame_whenever_that_is_for_you(frame):
    ew.write_frame(frame) # ew.write_frame handles the BGR to I420 conversion automagically
```
terminal-colors 3.0.0
Utility to test color capabilities of terminal.

My goal in writing this script was to provide all the functionality of all the
various perl/sh scripts found around the web in one place with some additional
bells and whistles.

It automatically detects 8, 16, 88, 256 color capabilities (via ncurses) and
displays the appropriate color charts. It can display the colors as blocks or
(2d) cubes optionally with color values overlaid in int or hex values.  It can
show the full rgb text string as well. It can also show the display with a
vertical (default) or horizontal orientation or have additional padding.

It also works as a utility for converting between 256 and 88 color values.