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.

Metadata

Release files for gp3tools 0.1.2

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.2
File Size Uploaded Provenance
gp3tools-0.1.2.tar.gz 931.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / gp3tools-0.1.2.tar.gz

Download URL gp3tools-0.1.2.tar.gz
Size 931.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3a3f2a6c28d8c30de91235b89337ef34907baa5d3c0f74ce72ab78f737614e5b
BLAKE2b-256 checksum
How to use checksums
0657060877382eeee6080f788a954f6971c1138c73aaf5da622880c29aef0ed9
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 9, 2026.

Transparency log

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

Download URL gp3tools-0.1.2-py3-none-any.whl
Size 398.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e4e280074c9b9e29726d300d6814a51f71a8cbd7a351b6a1d8412e3f94aad48
BLAKE2b-256 checksum
How to use checksums
c83f0ad0866cc1fea071560601e1a651c9cd3ff279e7952208fcd4f2989cda30
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 9, 2026.

Transparency log

Security for gp3tools 0.1.2

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.2.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 9, 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