Skip to main content

glance-sdk

Structured screen understanding for AI apps. glance.run

Replace expensive screenshot-to-vision-model pipelines with one function call. Glance reads the macOS accessibility tree and gives your AI structured data about every UI element — role, label, value, and exact pixel coordinates.

Install

pip install glance-sdk

Usage

from glance_sdk import screen, capture, find, check_access

# LLM-ready text — drop directly into your prompt
context = screen()

# Full structured data
state = capture()
print(state["app"])           # "VS Code"
print(state["elementCount"])  # 342
print(state["captureTimeMs"]) # 28.5

# Find element by name → exact coordinates
btn = find("Submit")
print(btn["centerX"], btn["centerY"])  # 520, 340

# Check accessibility permission
has_access = check_access()

Why

Screenshot Glance
Speed 2-5 seconds ~0.8 seconds
Tokens ~3,000 (image) ~500 (text)
Cost ~$0.03 / call ~$0.001 / call
Positions AI guesses Exact from OS

Requirements

  • macOS 14.2+
  • Accessibility permission (System Settings -> Privacy & Security -> Accessibility)

License

MIT

Metadata

Release files for glance-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for glance-sdk 0.1.0
File Size Uploaded Provenance Actions
glance_sdk-0.1.0.tar.gz 56.9 kB Without provenance Details for glance_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glance-sdk 0.1.0
File Interpreter ABI Platform Actions
glance_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for glance_sdk-0.1.0-py3-none-any.whl

Total release size: 112.8 kB

Release files / glance_sdk-0.1.0.tar.gz

Download URL glance_sdk-0.1.0.tar.gz
Size 56.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eb2ab0982cb5d01de0c1dc10921a14e36607c73eed44cd84cb38369d3e2c6fab
BLAKE2b-256 checksum
How to use checksums
0159d83d7384ab26c811fbcbe1d182ac9f6cd0cedbfaa6eaf04145eed4c645b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / glance_sdk-0.1.0-py3-none-any.whl

Download URL glance_sdk-0.1.0-py3-none-any.whl
Size 55.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed2326532d279451f7b55f85f206036d7794215d439ca516569515b22dde2ab3
BLAKE2b-256 checksum
How to use checksums
c97c6b88c493f1d7e682a505d7c9d7592b84d8c65fb8636229d05fca0ed81a96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for glance-sdk 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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