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 client the person made in Visor's Advanced settings, under Network access, 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.1

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.1
File Size Uploaded Provenance Actions
visor_kit-0.1.1.tar.gz 49.0 kB With provenance Details for visor_kit-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 62.3 kB

Release files / visor_kit-0.1.1.tar.gz

Download URL visor_kit-0.1.1.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ecd675734782c01a3004cca8782ed4b307e2e7259b67d9f453de57f4588f2b80
BLAKE2b-256 checksum
How to use checksums
de23894d32f4250b39438c16aee7a4c4b440e03a3ce9a76842137b049311d416
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 9, 2026.

Transparency log

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

Download URL visor_kit-0.1.1-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4076fee6bba5f88619e5a1a2863638a88bf603edd764bf8a639b1c2d18b72a2
BLAKE2b-256 checksum
How to use checksums
8b07288feeab2826e4776f11fab01590292a3ce491f596cb9db797ccafa0084a
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 9, 2026.

Transparency log

Security for visor-kit 0.1.1

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.1.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 9, 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