Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

eyetrajectoriespy

PyPI version GitHub Release Python Documentation

Functional analysis of continuous and sparse eye-tracking trajectories in Python.

Instead of immediately reducing gaze to fixation counts, dwell summaries, or symbolic scanpaths, eyetrajectoriespy treats gaze as a time-indexed functional process

$$ \mathbf G_i(t)= \begin{bmatrix} x_i(t)\ y_i(t) \end{bmatrix}. $$

Stable: 0.12.0 · 1.0 release candidate under qualification: 1.0.0rc1 · Python: 3.11–3.13

pip install eyetrajectoriespy
# exact reproducible stable release
pip install eyetrajectoriespy==0.12.0

Documentation · Quick start · Choose a workflow · Mathematics · Visual gallery · Validation

Current stable release: 0.12.0
0.12.0 adds the qualified native sparse multivariate FPCA / joint-PACE workflow for jointly observed planar gaze. Release qualification, immutable hashes, OIDC/attestation evidence, and publication chronology are retained in the 0.12.0 release notes and validation records rather than repeated on this landing page.

1.0 release candidate under qualification: 1.0.0rc1
The candidate freezes the evidence-backed 1.0 API boundary without adding a new estimator or changing scientific behavior. Publication readiness remains disarmed until fresh exact-RC performance and the complete PR plus protected-main qualification matrices pass.

Sparse planar covariance structure estimated by eyetrajectoriespy

What can it model?

Scientific object Main route
Dense/common-grid continuous x/y gaze fit_mfpca()
Sparse/irregular single-coordinate gaze fit_sparse_fpca() + PACE
Sparse/irregular paired planar x/y gaze fit_sparse_mfpca() + joint PACE
Repeated participant/trial functions functional mixed effects / multilevel FPCA

Which workflow do I need?

Scientific question Start here
What are the dominant modes of continuous gaze variation? Continuous gaze exploration + FPCA
How does an experimental predictor change a continuous functional response? Experimental functional regression
How do repeated participant trials affect functional inference? Repeated-trial functional mixed effects
How do predictors change repeated binary or count functional responses? Generalized binary/count responses
Is recurrence or nonlinear temporal organization the scientific target? Nonlinear/recurrence analysis

Minimal dense/common-grid example

from eyetrajectoriespy import fit_mfpca, simulate_planar_trajectories

gaze = simulate_planar_trajectories(
    n_participants=20,
    trials_per_participant=6,
    random_state=7,
)

fit = fit_mfpca(gaze, n_components=0.95, scaling="dimension_sd")
print(fit.explained_variance_ratio)

Minimal sparse paired-planar example

import numpy as np
from eyetrajectoriespy import fit_sparse_mfpca

fit = fit_sparse_mfpca(
    irregular,
    dimensions=("x", "y"),
    n_components=2,
    evaluation_grid=np.linspace(0.0, 1.0, 41),
    mean_bandwidth=0.20,
    covariance_bandwidth=0.30,
    measurement_error="diagonal",
    measurement_error_variance=(0.0025, 0.0025),
    psd_action="project",
    score_failure_action="retain_nan",
)

The sparse estimator uses native paired observations to estimate a joint population mean/covariance model. Evaluating fitted population functions at native times for PACE is not raw-trajectory interpolation.

What eyetrajectoriespy refuses to hide

Consequential choices stay explicit: missingness, interpolation, smoothing, registration, time/coordinate normalization, analysis support, measurement-error assumptions, PSD policy, family/model selection, resampling unit, denominator/exposure semantics, and failure/status codes.

Scope

eyetrajectoriespy starts once gaze has a scientifically interpretable time and coordinate representation. Event detection, general gaze QC, survival analysis, AOI perturbation robustness, and symbolic sequence models belong upstream or in specialist packages.

The package deliberately separates stable public methods, advanced diagnostics, external-backend interoperability, and experimental methods. Scientific product qualification matters more than estimator count.

Where is the full advanced API?

The README is intentionally a compact entry point rather than the exhaustive function catalogue.

Release lineage and reproducibility

The stable pre-1.0 sequence remains explicit: 0.10.0 introduced the native sparse univariate FPCA/PACE line, the immutable 0.11.0rc1 prerelease preceded final 0.11 known-truth recovery infrastructure, and 0.12.0 added the native sparse planar MFPCA/joint-PACE line. Published tags and distributions remain immutable historical records.

Documentation and reproducibility

Development checks:

python -m pytest --cov=eyetrajectoriespy
python -m compileall -q src
python scripts/generate_function_equation_index.py --check
python scripts/generate_docs_gallery.py
python scripts/generate_sparse_mfpca_docs_figure.py
python scripts/validate_docs_contracts.py
mkdocs build --strict

Citation and license

See CITATION.cff for citation metadata. MIT © 2026 Stefanos Balaskas.

Metadata

Release files for eyetrajectoriespy 1.0.0rc1

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

Source distribution (sdist)

Source distribution for eyetrajectoriespy 1.0.0rc1
File Size Uploaded Provenance Actions
eyetrajectoriespy-1.0.0rc1.tar.gz 456.1 kB With provenance Details for eyetrajectoriespy-1.0.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eyetrajectoriespy 1.0.0rc1
File Interpreter ABI Platform Actions
eyetrajectoriespy-1.0.0rc1-py3-none-any.whl Python 3 none any Details for eyetrajectoriespy-1.0.0rc1-py3-none-any.whl

Total release size: 821.2 kB

Release files / eyetrajectoriespy-1.0.0rc1.tar.gz

Download URL eyetrajectoriespy-1.0.0rc1.tar.gz
Size 456.1 kB
Tags Source
SHA-256 checksum
How to use checksums
03ea7851e81507ef00c9c7da309d2d1951992b23548a51dab4b5a46c9f694a24
BLAKE2b-256 checksum
How to use checksums
600e3f8ccdc0d9a100efc128f6d8e6cc1a422f9a7343602096188b4eeb9f0146
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 3, 2026.

Transparency log

Release files / eyetrajectoriespy-1.0.0rc1-py3-none-any.whl

Download URL eyetrajectoriespy-1.0.0rc1-py3-none-any.whl
Size 365.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
555277d9328fa9b0a3f1f445d2dd2f85d192f3f634e95293789c1bf37c4fa118
BLAKE2b-256 checksum
How to use checksums
835b94a91e48aa0369f97bc2b02a31ef9c84b57d36243a0bc0da3142f4598263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 3, 2026.

Transparency log

Security for eyetrajectoriespy 1.0.0rc1

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 eyetrajectoriespy-1.0.0rc1.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 Oct 3, 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