Skip to content

docs: document snapshot and event-manager APIs in README#288

Draft
bluetoothbot wants to merge 1 commit into
openvideolibs:asyncfrom
bluetoothbot:koan/docs-snapshot-events
Draft

docs: document snapshot and event-manager APIs in README#288
bluetoothbot wants to merge 1 commit into
openvideolibs:asyncfrom
bluetoothbot:koan/docs-snapshot-events

Conversation

@bluetoothbot

@bluetoothbot bluetoothbot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What: Document the snapshot helpers and the event (pull-point / notification) managers in the README.

Why: get_snapshot/get_snapshot_uri and create_pullpoint_manager/create_notification_manager are core public features — used by downstream callers such as Home Assistant — but the README only covered the constructor and generic service creation. With the code at 100% coverage and every constructor option already documented, these two public API families were the remaining user-facing gap: source-only and invisible to users.

How: Added two sections after "Use other services":

  • Capture a snapshotget_snapshot(profile_token, basic_auth=...) returning JPEG bytes or None, the per-profile URI cache, and the digest-vs-basic auth choice.
  • Receive events — pull-point manager lifecycle (set_synchronization_pointget_service().PullMessagesstop) plus a pointer to the push-based notification manager and its process() parser.

Idioms verified against tests/test_managers.py (set_synchronization_point, get_service, PullMessages).

Testing: Docs-only. README.rst parses cleanly through docutils with no warnings/errors.


Quality Report

Changes: 87 files changed, 9610 insertions(+), 1473 deletions(-)

Code scan: 22 issue(s) found

  • README.rst:61 — debug print statement
  • README.rst:111 — debug print statement
  • README.rst:203 — debug print statement
  • README.rst:217 — debug print statement
  • examples/events.py:20 — debug print statement
  • examples/events.py:24 — debug print statement
  • examples/events.py:25 — debug print statement
  • examples/events.py:27 — debug print statement
  • examples/events.py:29 — debug print statement
  • examples/events.py:62 — debug print statement

Tests: failed (FAILED)

Branch hygiene: clean

Generated by Kōan

The snapshot helpers (get_snapshot/get_snapshot_uri) and the pull-point and
notification event managers are core public features consumed by downstream
callers but had no README coverage. Add usage sections for both, with the
digest/basic auth and subscription-renewal caveats spelled out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant