gp3tools for Python
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.0 initial stable release. The complete 278-function public name surface frozen from the R
v2.3.0NAMESPACEis 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 tolme4,glmmTMB,mgcv, orbrms.
Installation
Install the validated alpha release from PyPI:
python -m pip install "gp3tools==0.1.0"
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 importqc: master tables, sampling, tracking, missingness, screen bounds, exclusions, readinesspupil: artifact flags, blinks, interpolation, baseline correction, smoothing, binocular reconstructionaoi: static/dynamic/polygon AOIs, entries, windows, transitions, entropy, scanpaths, clusteringevents: fixation/saccade detection, agreement and benchmark workflowsstats: model preparation, LMM/GLM/spline adaptations, Bayesian adapters, cluster permutation, bootstrap and sensitivityface: external facial-analysis QC and time synchronisationinterop: eyetrackingR/pupillometryR/gazer/eyetools/HDDM/BIDS/gpbiometrics adaptersplotting: Matplotlib visualisationsreporting: CSV/HTML outputs, reporting checklists and end-to-end workflowsimulation: 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gp3tools-0.1.0.tar.gz | 851.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gp3tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / gp3tools-0.1.0.tar.gz
| Download URL | gp3tools-0.1.0.tar.gz |
|---|---|
| Size | 851.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3877603193a4b8dcbd966ff6c40d869ac7d23216647ce551c6fac77180fb0a92
|
|
BLAKE2b-256 checksum How to use checksums |
8a8f245a15edeea69da53318a8baebb6caa4e9f00d41531f9b4aa07b6234b517
|
| 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 Sep 20, 2026.
Transparency logRelease files / gp3tools-0.1.0-py3-none-any.whl
| Download URL | gp3tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 401.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8152a4fcd78943657b6f35f7cfab996a158f5d252108d9ee642a5f4da63bd0b
|
|
BLAKE2b-256 checksum How to use checksums |
e290997c336024a726482bf935e0e2acd8cd5b4fa662a96ef55046560b657fd4
|
| 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 Sep 20, 2026.
Transparency logSecurity for gp3tools 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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for gp3tools-0.1.0.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 Sep 20, 2026.
Transparency logA 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.