Skip to main content

Useful utilities for your Brilliant Frame AR glasses

Project description

Frame Utilities – for Python

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

Install

pip3 install frameutils

Bluetooth communication library

As simple as:

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:

python3 -m pytest tests/test_bluetooth.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frameutils-0.1.15.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

frameutils-0.1.15-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file frameutils-0.1.15.tar.gz.

File metadata

  • Download URL: frameutils-0.1.15.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for frameutils-0.1.15.tar.gz
Algorithm Hash digest
SHA256 ae845275c6330d179e44ed4317ea7a738674d5c23fd32bcb63024a3d2d8f3095
MD5 86c99f1d5e62428466dd85c44674fad9
BLAKE2b-256 988ba6a41af500098de087e4717640e519d514462ad08a5de8bccf7b240d59b4

See more details on using hashes here.

File details

Details for the file frameutils-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: frameutils-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for frameutils-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ce2b2095adbe81fb0e316eaec9584d3248e1e9b7759409d4207699a4b9e5c5
MD5 690c755102be5d36d1bcaeac8b8f8b78
BLAKE2b-256 6b6cb37ffa437fffefa119307f78a24e6c6ae03fd5960380e3bc3388e936eb6b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page