Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brilliantlabsAR/frame-utilities-for-python

Useful Python utilities for Frame! Available on pip
https://github.com/brilliantlabsAR/frame-utilities-for-python

Last synced: 2 days ago
JSON representation

Useful Python utilities for Frame! Available on pip

Awesome Lists containing this project

README

        

# Frame Utilities – for Python

Useful utilities for your Brilliant Frame such as a Bluetooth communication library, and font generation tools.

## Install

```sh
pip3 install frameutils
```

## Bluetooth communication library

As simple as:

```python
import asyncio
from frameutils import Bluetooth

async def main():
bluetooth = Bluetooth()
await bluetooth.connect()

print(await bluetooth.send_lua("print('hello world')", await_print=True))
print(await bluetooth.send_lua("print(1 + 2)", await_print=True))

await bluetooth.disconnect()

asyncio.run(main())

```

## Tests

To run the unit tests, ensure you have an unconnected Frame device in range, and then run:

```sh
python3 -m pytest tests/test_bluetooth.py
```