semvec/pypi-packages huggingface dataset:
uibbq 1.0
Micropython iBBQ Interface

# Micropython iBBQ
Micropython support for BLE iBBQ thermometers such as those made by Inkbird.

## Dependencies
This driver depends on `uasyncio` and [aioble](https://github.com/jimmo/micropython-lib/tree/lib-aioble/aioble). 

Note that aioble requires a build of MicroPython created after Feb 18 2021 which are the unstable 1.14 releases or 1.15.

## Features
* Read temperature levels from all probes
* Read battery level
* Set the display to either celcius or farenheit (temperature readings are in celcius)
* Asynchronous api

## Usage
Connect and read the temperature
```python
def handle_data(d):
    print("Result:", d)

async def run():
    ibbq = iBBQ(handle_data)
    await ibbq.connect()
    await ibbq.disconnect()

asyncio.run(run())
```

Read the battery level
```python
async def run():
    ibbq = iBBQ(handle_data)
    await ibbq.connect()
    print("Battery:", await ibbq.battery_level())
    await ibbq.disconnect()

asyncio.run(run())
```

Set the units on the display
```python
async def run():
    ibbq = iBBQ(handle_data)
    await ibbq.connect()
    await ibbq.set_display_to_celcius()
    await ibbq.set_display_to_farenheit()
    await ibbq.disconnect()

asyncio.run(run())
```

## Credits

[Adafruit circuitpython iBBQ](https://github.com/adafruit/Adafruit_CircuitPython_BLE_iBBQ) and 
[Go iBBQ](https://github.com/sworisbreathing/go-ibbq) were very useful for decoding the iBBQ protocol.
The Adafruit library in particular has an empirically worked formula for calculating the battery voltage.
gada-compose 0.1a0
Python frontend for mysql cli
Requires Python: >=3.7

# gada-compose

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gada-compose)
[![Python package](https://img.shields.io/github/workflow/status/gadalang/gada-compose/Python%20package)](https://github.com/gadalang/gada-compose/actions/workflows/python-package.yml)
[![Documentation Status](https://readthedocs.org/projects/gada-compose/badge/?version=latest)](https://gada-compose.readthedocs.io/en/latest/?badge=latest)
[![Codecov](https://img.shields.io/codecov/c/gh/gadalang/gada-compose?token=4CSJTL1ZML)](https://codecov.io/gh/gadalang/gada-compose)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/gadalang/gada-compose/issues)

Automate, customize, and execute [gada](https://github.com/gadalang/gada) node workflows.

## Install

Using pip:

```bash
$ pip3 install gada-compose
```

## Documentation

Build the doc with:

```bash
$ make html
```

You can find the latest documentation on [gada-compose.readthedocs.io](https://gada-compose.readthedocs.io/).

## Testing

The `test` directory contains many tests that you can run with:

```python
$ tox .
```

## License

Licensed under the [MIT](LICENSE) License.
multithreading 0.2.0
MultiThreading: Thread + Queue
Requires Python: >=3.6

# Multi Threading

Example Class
-------------

```python
import multithreading

class Demo(multithreading.MultiThread):
    def task(self, task):
        print(task)

```


Example Main
------------

```python
task_list = range(1, 3 + 1)

demo = Demo(task_list, threads=3)

# Start
demo.start()
```

Result

```
1
2
3
```

**OR**


```python
demo = Demo(threads=3)

# Start threads
demo.start_threads()

# Adding task to queue
demo.add_task(1)
demo.add_task(2)
demo.add_task(3)

# Wait until queue is empty
demo.join()

```

Result

```
1
2
3
```


Install
-------

```shell
$ pip install multithreading
```