Skip to main content

aidancevideo-replay-windows

Track the start and end of a video replay window while source metadata loads asynchronously. Each selected source receives a revision. An operation that arrives with an older revision leaves the new source intact.

Example

from aidancevideo_replay_windows import WindowSession, format_window_csv

session = WindowSession(minimum_window=0.25)
revision = session.begin_source()
session.accept_metadata(revision, 3.0)
session.set_marker(revision, "start", 0.5)
session.set_marker(revision, "end", 1.25)
print(format_window_csv(session.snapshot()), end="")

This prints one CSV data row with the start and end seconds. The export contains only timestamps. Values use Python's float representation and may use scientific notation for very small intervals.

Integrate with a player

Call begin_source before reading a newly selected file, and retain that revision in the callback or task that delivers metadata. accept_metadata accepts positive finite durations. set_marker accepts finite seconds from zero through that duration. Both methods return False when the revision or value is invalid.

A new source clears duration and markers. Accepted metadata also clears markers, so callers should submit it once per metadata result. The snapshot is frozen and derives its valid state from the range and minimum length. Reverse or short ranges can be retained while the user adjusts them. format_window_csv raises ValueError until the range is valid.

Use a caller-selected minimum duration when the default quarter second is unsuitable. The threshold uses floating-point seconds. Connect this model to the player's own metadata, error, seek, playback and cleanup events. It validates numeric state and has no media decoder or playback scheduler.

Scope

This standalone Python port adapts the AIDanceVideo team's replay-window teaching model. The separate AIDanceVideo browser generator provides product context. The module takes numerical inputs and makes no service or network calls. AI assistance was used for the code and documentation.

Python 3.10 or newer is required. The package has no runtime dependencies. The distribution metadata declares LicenseRef-NoLicenseGrant and includes the notice in LICENSE.

Metadata

Release files for aidancevideo-replay-windows 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 aidancevideo-replay-windows 0.1.0
File Size Uploaded Provenance Actions
aidancevideo_replay_windows-0.1.0.tar.gz 3.0 kB Without provenance Details for aidancevideo_replay_windows-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aidancevideo-replay-windows 0.1.0
File Interpreter ABI Platform Actions
aidancevideo_replay_windows-0.1.0-py3-none-any.whl Python 3 none any Details for aidancevideo_replay_windows-0.1.0-py3-none-any.whl

Total release size: 7.0 kB

Release files / aidancevideo_replay_windows-0.1.0.tar.gz

Download URL aidancevideo_replay_windows-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e47a7f3d899999a82b1ef3112095bd157c350c0612b37a035076801a6d9433f8
BLAKE2b-256 checksum
How to use checksums
52fde81ba77b38646b6a75bfd202681364625c7f7854d70fedd2bd320d7c2d34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

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

Download URL aidancevideo_replay_windows-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f384f89ce7bfdf391788c77ddfe8ef30b0b5eb18a6ff844fdfb27128278ae9c4
BLAKE2b-256 checksum
How to use checksums
908053075eb98066a67373700f7fdf432e696869e595ca67b88deef7e4ec5668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for aidancevideo-replay-windows 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