Skip to main content

Python Suite research packages logo

gp3tools for Python

CI Documentation Release PyPI DOI Python License

Documentation: https://stefanosbalaskas.github.io/gp3tools-python/

A Python implementation of the public workflow of gp3tools, the R package for importing, inspecting, analysing, visualising, modelling, and reporting Gazepoint GP3 / Gazepoint Analysis exports.

Status: 0.1.2 stable release. The complete 278-function public name surface frozen from the R v2.3.0 NAMESPACE is present. Core data, QC, pupil, AOI, sequence, event, plotting, reporting, face, simulation, and export workflows are native Python. Statistical functions tied to R-specific backends are Python-native adaptations, not claims of coefficient-for-coefficient equivalence to lme4, glmmTMB, mgcv, or brms.

Installation

Install the validated stable release from PyPI:

python -m pip install "gp3tools==0.1.2"

or allow the latest pre-release explicitly:

python -m pip install --pre gp3tools

PyPI: https://pypi.org/project/gp3tools/

Quick start

import gp3tools as gp3

master = gp3.load_example_master()

sampling = gp3.check_sampling_rate(
    master,
    time_col="TIME",
    group_cols=["subject", "trial_global"],
)

pupil = gp3.preprocess_gazepoint_signals(
    master,
    pupil_col="pupil",
    time_col="TIME",
)

transitions = gp3.compute_gazepoint_aoi_transition_matrix(
    master,
    aoi_col="aoi_current",
)

fig = gp3.plot_gazepoint_heatmap(master)

Public API contract

import gp3tools as gp3

len(gp3.R_EXPORTS)
# 278

gp3.api_status()["status"].value_counts()

The build distinguishes:

  • native: direct Python implementation;
  • native-adapted: implemented in Python but the R package used a backend or algorithm whose exact numerical identity is not asserted;
  • native-adapter: interoperability adapter expressed natively in Python.

See docs/API_PARITY.md and the bundled api_manifest.csv for every exported function.

Main modules

  • io: Gazepoint CSV, folder, summary, and face-export import
  • qc: master tables, sampling, tracking, missingness, screen bounds, exclusions, readiness
  • pupil: artifact flags, blinks, interpolation, baseline correction, smoothing, binocular reconstruction
  • aoi: static/dynamic/polygon AOIs, entries, windows, transitions, entropy, scanpaths, clustering
  • events: fixation/saccade detection, agreement and benchmark workflows
  • stats: model preparation, LMM/GLM/spline adaptations, Bayesian adapters, cluster permutation, bootstrap and sensitivity
  • face: external facial-analysis QC and time synchronisation
  • interop: eyetrackingR/pupillometryR/gazer/eyetools/HDDM/BIDS/gpbiometrics adapters
  • plotting: Matplotlib visualisations
  • reporting: CSV/HTML outputs, reporting checklists and end-to-end workflow
  • simulation: synthetic Gazepoint data for examples and tests

Scientific compatibility note

A Python port should preserve scientific intent without pretending different statistical engines are identical. Accordingly, the modelling layer documents backend adaptation explicitly. The package is suitable for software migration, workflow prototyping, reproducible preprocessing, data/QC/plotting tasks, and validation development; advanced inferential parity should be checked against the R reference implementation before confirmatory use.

R reference

The public API was frozen against gp3tools R v2.3.0. R_NAMESPACE_REFERENCE.txt is included in the source distribution for auditability.

Citation

Balaskas, S. (2026). gp3tools: An R Package for Reproducible Analysis and Reporting of Gazepoint GP3 Eye-Tracking Exports. Journal of Eye Movement Research, 19(4), 76. DOI: 10.3390/jemr19040076.

License

MIT.

R 2.3.0 parity and validation

The Python package freezes the 278-export R 2.3.0 public API while exposing 285 Python public names in the validated parity branch. Behavioral equality is evidence graded: exact and numerical-tolerance claims are made only where frozen R oracles exist; backend-adapted statistical families are labelled accordingly.

The release gate includes R1–R3 frozen behavioral regressions, R4 canonical structure/compatibility tests plus frozen-oracle integrity checks, whole-surface smoke, plot catalog smoke, runnable examples, Ruff, compilation, strict documentation build, ≥90% test coverage, wheel/sdist construction and isolated-wheel validation. See docs/PARITY_STATUS.md.

October 2026 research article and figure

Native acquisition rate and spatial dispersion documents experimental, source-only validation methods and reproducible synthetic examples. It is available in the website navigation, while independently qualified external empirical claims and stable PyPI APIs remain separate (scientific acceptance criteria).

Original synthetic research figure

Metadata

Release files for gp3tools 0.1.3

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

Source distribution (sdist)

Source distribution for gp3tools 0.1.3
File Size Uploaded Provenance
gp3tools-0.1.3.tar.gz 934.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gp3tools 0.1.3
File Interpreter ABI Platform
gp3tools-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / gp3tools-0.1.3.tar.gz

Download URL gp3tools-0.1.3.tar.gz
Size 934.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2588c6a37f16b5e28117dceb930e6984a992399dbbcf8d8a227a8e07f76274ea
BLAKE2b-256 checksum
How to use checksums
e1040f581d655a9f2d960d5271e10443bc1a9a7d13477e020bb72eddfd09b373
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 21, 2026.

Transparency log

Release files / gp3tools-0.1.3-py3-none-any.whl

Download URL gp3tools-0.1.3-py3-none-any.whl
Size 398.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
302580af8eafa962221bf481a70365cdaae6d08d66e31dc3ae3f8c7b045819a7
BLAKE2b-256 checksum
How to use checksums
779b24114ec5a7b5cd62f42adb30f583ee7c51f3caaaaf9c9895ce9c1d2c07b4
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 21, 2026.

Transparency log

Security for gp3tools 0.1.3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gp3tools-0.1.3.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 21, 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