Skip to main content

VDK for Python: scripts and agents, over adb or the network

The Visor Development Kit in Python.
Meta glasses from your scripts and agents, over adb or the network, through Visor.

visor-kit on PyPI Documentation License: Apache-2.0

Install | Connect | Use it | Layouts | Testing


Call any method of the VDK, follow its topics and read its feeds: the glasses' status, the camera, the Display, the Neural Band, voice and the assistant. All of it is asyncio.

Install

pip install visor-kit              # over adb
pip install "visor-kit[network]"   # also the network door and visor fake

From a clone of visor-kit: pip install "./clients/python[network]".

Connect

import asyncio
import visor_kit

async def main():
    async with await visor_kit.connect_adb() as visor:
        print(await visor.call("glasses.status"))
        async for gesture in visor.subscribe("band.gestures"):
            print(gesture["finger"], gesture["derived"])

asyncio.run(main())
Connect with What it needs Scopes
connect_adb(serial=None) adb, and Developer mode on in Visor Every scope
connect_network("ws://127.0.0.1:7333/rpc", token) A program the person added in Visor, under Settings, Apps, Programs and agents, and the network extra That client's
connect_fake() visor fake running on this computer, and the network extra The ones the fake grants

Use it

  • call(method, params) returns the result.
  • subscribe(topic, params) yields events, and subscribes when the iteration starts.
  • open(topic, params) subscribes first and returns a Stream to iterate and aclose(), for events that follow something you do.
  • feed(name, params) yields a feed's records as (header, payload), the payload as bytes.
  • supports(name) says whether this Visor answers a method, topic or feed; welcome holds its whole hello.

All of them raise VisorError, whose code and reason are the VDK's. Every method and topic works this way, by its name, with the scopes the connection holds. The JSON-RPC docs list them all, and openrpc.json describes them for tools.

Layouts and Briefing cards

visor_kit.layout builds layouts and Briefing cards for the Display as plain dicts, with the same pieces as the Kotlin builder. Fields take snake_case: max_lines=1 is maxLines.

from visor_kit.layout import card, header, stat, progress, page, chart, field

await visor.call("display.cards.set", card(
    "pasta", "Kitchen timer",
    header("Kitchen timer", icon="clock"),
    stat("4:00", "Pasta"),
    progress(0.6),
    icon="clock",
    pages=[page(field("Started", "19:42")), page(chart([20, 60, 95, 100]))],
))

It has column, row, text, image, icon, button, buttons, video, chart, pager and page, and the blocks header, stat, change, field and progress. image_file(path) turns a photo into a data: URI for image(); Visor scales it to the Display.

Test without the glasses

visor fake runs a fake Visor on your computer, with a Display simulator in the browser that draws your layouts and cards. Connect to it with connect_fake(). Install the command with one line:

curl -fsSL https://visor.macedonga.com/install.sh | sh          # macOS and Linux
irm https://visor.macedonga.com/install.ps1 | iex               # Windows

Docs

License

Apache 2.0.

Metadata

Release files for visor-kit 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visor-kit 0.1.2
File Size Uploaded Provenance Actions
visor_kit-0.1.2.tar.gz 49.0 kB With provenance Details for visor_kit-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for visor-kit 0.1.2
File Interpreter ABI Platform Actions
visor_kit-0.1.2-py3-none-any.whl Python 3 none any Details for visor_kit-0.1.2-py3-none-any.whl

Total release size: 62.3 kB

Release files / visor_kit-0.1.2.tar.gz

Download URL visor_kit-0.1.2.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2fab74ad143db6c9413ea032b3d082bdb8d9cb6b151fc80d469824729f42cd25
BLAKE2b-256 checksum
How to use checksums
cf473816fa54db0647114f3a75f05311ec79007c1a3fe03bfb1831500ac72c6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / visor_kit-0.1.2-py3-none-any.whl

Download URL visor_kit-0.1.2-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05128d14ac329554a7fb2a6c966fbef0a6bd14afec697cd1b49eaf5e51cf1acc
BLAKE2b-256 checksum
How to use checksums
3cbc4ac32375f35bd50d2ce3d710f7814efc16798bb5a7c65eca7d7eb1a1420c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for visor-kit 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for visor_kit-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page