Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brilliantlabsAR/frame-utilities-for-python
- Owner: brilliantlabsAR
- License: other
- Created: 2023-10-25T09:07:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-05T08:18:52.000Z (2 months ago)
- Last Synced: 2024-11-08T23:58:01.477Z (5 days ago)
- Language: Python
- Homepage: https://pypi.org/project/frameutils/
- Size: 32.2 KB
- Stars: 37
- Watchers: 3
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: license.md
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 Bluetoothasync 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
```