semvec/pypi-packages huggingface dataset:
kp-fraydit 0.1.15
Kafka library for producing and consuming
Requires Python: >=3.6

<p>
This library makes working with kafka in python easy. It simplifies the producing of records. The producer class persists
fields so that the fields of a record can be retrieved in various places from within your code base.
</p>
<p>
The library that expands on the work of Confluent's kafka-python library to make an intuitive producer that simplifies coding. This producer acts as a Super Class that you can inherit all of your specific producers in your code. The implementation takes five lines of code
</p>

<ul>
  <li>Set the KAFKA_REGISTRY_LISTENER and KAFKA_BROKER_LISTENER (2 lines of code)</li>
  <li>from kp_fraydit.producers.producer import Producer</li>
  <li>prod = Producer('my-topic')</li>
  <li>prod.addValueArgs(myField1='test')</li>
</ul>

<p>
That is all that is needed to produce a record.
</p>
<p>
It utilizes Confluent's amazing Exact-Once Semantics(EOS) architecture. That assurance takes time, however. To speed up the library, all producer instances pool their records and then the records are parallel processed. This enhances the speed of the library while maintaining the EOS assurance. The sacrifice of this pooling loses the guarantee of order preservation. The library allows for individual producer instances to maintain a separate pool that ensures order. 
</p>

<p>
The producer handles JSON and Avro schema automatically. Nested schema (Avro only) is handled. That means you can have records within records and the producer class knows how to handle that.
</p>

<p>
You can discover what fields are available, which fields are required, optional fields, specify optional fields that you want to include on each write, all from within the attributes of the producer.
</p>

https://fraydit.com
hatchrestbluepy 1.1.1
A Python library to control the Hatch Rest sound machine, using bluepy
Requires Python: >=3.6

# Hatch Rest Python Library
This library allows an original [Hatch Rest](https://www.hatch.co/rest) to be controlled via BLE. This library uses the [bluepy](https://github.com/IanHarvey/bluepy) library as a backend, and therefore only runs on Linux. This library is primarily intended to be run on Raspberry Pi devices.
## Installation
```
pip install hatchrestbluepy
```
If you intend to use this library without elevated privileges, you will need to find `bluepy-helper` and run the following command to enable BLE access.
```
sudo setcap 'cap_net_raw,cap_net_admin+eip' bluepy-helper
```
## Example

## Credits
This library is heavily based on the [pyhatchbabyrest](https://github.com/kjoconnor/pyhatchbabyrest) library, written by [@kjoconnor](https://github.com/kjoconnor).
webcv 1.0.3
"A web wrapper for opencv that supports displaying via web browsers."
Requires Python: >=3.7

# Webcv

Webcv is a simple wrapper that can implements displaying images, text, and tables via web browsers.

This project is based on [quart](https://pgjones.gitlab.io/quart/index.html) that requires python 3.7+. For older version of Python, please use [webcv-gevent](https://github.com/wanzysky/webcv-gevent) instead.

## Installation

`pip install webcv`


## Sample Usage



```python

import sys

import numpy as np
from webcv import webcv


webcv.head_show("h1", "Test image show")

image = np.random.randint(0, 256, (256, 256, 3), dtype=np.uint8)

webcv.imshow("image", image)
webcv.imshow("resize using webcv", webcv.resize(image, (512, 512)))

# response in 30 seconds
webcv.waitKey(30000)

webcv.head_show("h1", "Test table show")
webcv.table_show("versions", [
    ["python", "opencv", "webcv"],
    [f"version {'.'.join(str(v) for v in sys.version_info)}", cv.__version__, webcv.__version__],
    ])

webcv.waitKey()
```

By running the code above, your terminal will display something like:

```
#####################################################################
#                                                                   #
#   The server is running at: http://my-server-ip:4732              #
#                                                                   #
#####################################################################
 * Serving Quart app 'webcv'
 * Environment: production
 * Please use an ASGI server (e.g. Hypercorn) directly in production
 * Debug mode: False
 * Running on http://0.0.0.0:4732 (CTRL + C to quit)
```

Copy paste the address into your browser to view (you may need ssh forward if you are using a remote server):

![screenshot](screen_shot.png)
## Acknowledgement

The project was inspired by a Megvii tool.

## License

MIT License