PupEyes: Your Buddy for Pupil Size and Eye Movement Data Analysis
Project description
PupEyes: Your Buddy for Pupil Size and Eye Movement Data Analysis
Overview
PupEyes is a Python package for preprocessing and visualizing eye movement data. It handles pupil size preprocessing and supports interactive visualization of pupil size and fixation data. It was designed to streamline data preparation so you can analyze your data with ease and confidence.
Higlights
Best practices
The pupil data preprocessing pipeline is desgined based on the best practices available.
Pandas integration
Raw data is cleaned and prepared as a pandas dataframe, allowing you to enjoy the vast data analysis and manipulation methods offered by the pandas ecosystem.
Interactive interface
Multiple interactive visualizations using Plotly Dash allow you understand your data better.
Pupil Viewer: Examining Pupil Preprocessing Steps
Fixation Viewer: Visualize Fixation Patterns
AOI Drawing Tool: Flexibly Define AOIs
Installation
pip install pupeyes
or install the latest development version from Github
pip install git+https://github.com/HanZhang-psych/pupeyes.git
Documentation
Tutorials and API reference are available at Read the Docs.
Docker Container
Try PupEyes in a virtual environment!
# Clone the repository
git clone https://github.com/HanZhang-psych/pupeyes.git
cd pupeyes
# Start the Docker container
./start-pupeyes.sh start
# Access Jupyter Lab at http://localhost:8888
For detailed Docker instructions, see DOCKER_README.md.
Compatibility
While some PupEyes features are specific to Eyelink eye-trackers, many tools are compatible with any eye movement data.
Contributing
Please report bugs if you notice any. See the Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.
Citation
If you use PupEyes in your research, please cite our preprint
@misc{zhang_pupeyes_2025,
title = {{PupEyes}: An Interactive Python Library for Pupil Size and Eye Movement Data Processing},
url = {https://osf.io/h95ma_v1},
doi = {10.31234/osf.io/h95ma_v1},
shorttitle = {{PupEyes}},
publisher = {{OSF}},
author = {Zhang, Han and Jonides, John},
urldate = {2025-04-16},
date = {2025-04-07}
}
Changelog
See CHANGELOG.md for a list of changes in each release.
The project began as an attempt to formalize the eye-tracking processing scripts used in my past research. It then evolved into a much bigger project (as is always the case).
I hope PupEyes will be useful to the eye-tracking community!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pupeyes-0.3.2.tar.gz.
File metadata
- Download URL: pupeyes-0.3.2.tar.gz
- Upload date:
- Size: 91.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d7407ffb512b6bb0036a3e725488665a90542b2026ed1456aced48d57d615a
|
|
| MD5 |
312d8039e2a60f81b619752e67444e44
|
|
| BLAKE2b-256 |
5f64da0090be50060b08bb1c7f3ddb20475792f242074fd5abbc768e1f672a9e
|
File details
Details for the file pupeyes-0.3.2-py3-none-any.whl.
File metadata
- Download URL: pupeyes-0.3.2-py3-none-any.whl
- Upload date:
- Size: 98.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e606ac711fdb9370b565d335b398490e8389d2755bbe8513ce9997ae361a27d8
|
|
| MD5 |
cc67c3b5a3eae7136446b9613a2b42b7
|
|
| BLAKE2b-256 |
2cffce3b0daab9be943b997a16b6e15867203f82f8dfdcc0fa9e1ca0840d4ed3
|