{ "info": { "author": "Edwin Dalmaijer", "author_email": "edwin.dalmaijer@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 2", "Topic :: Scientific/Engineering" ], "description": "# PyAlea\n\nPython wrapper for the IntelliGaze API by [Alea Technologies](https://www.intelligaze.com/en/).\n\n## C API\n\nAlea offers an API to interact with their eye trackers. This API operates through COM, and is less straightforward to wrap in Python. (While technically possible, it requires external packages, and jumping through several hoops.) An easier solution was to introduce a C++ wrapper for the API, which is then compiled as a DLL. The resulting DLL is more easily accessed through Python's `ctypes`.\n\nThe source code for this \"C API\" wrapper for the original API is included here.\n\n## Download and install\n\nPyAlea is available via the Python Package Index (PyPI), and can be installed through `pip`.\n\n```\npip install python-alea\n```\n\n## Usage\n\nAfter installation, you can import the Alea package into your Python script:\n\n```\nimport alea\n```\n\n#### Recording data to file\n\nYou can then use the AleaTracker class for quick and easy interfacing with your eye tracker. For example, the following script initialises a connection with the IntelliGaze Server, calibrates the eye tracker, and records 10 seconds of data into a text file.\n\n```\nimport time\nfrom alea import AleaTracker\n\n# Initialise the connection to the IntelliGaze Server,\n# using the PyGaze alea code.\ntracker = AleaTracker(\"pg=12\", file_path=\"my_data.tsv\")\n\n# Calibrate the eye tracker, using the default options.\ntracker.calibrate()\n\n# Start recording to file.\ntracker.start_recording()\n# Log a message to the data file.\ntracker.log(\"recording_started\")\n\n# Wait for 10 seconds.\ntime.sleep(10.0)\n\n# Stop recording.\ntracker.stop_recording()\n\n# Close the connection to the eye tracker.\ntracker.close()\n```\n\n#### Streaming samples for gaze-contingent functionality\n\nYou can use AleaTracker's `sample` method to obtain the corrent gaze coordinates, as well as the current pupil size. While a connection is open, this will always return the latest available sample.\n\n**NOTE: You do not have to be recording to use the `sample` method, and using the `sample` method does not affect recording. You can do both at the same time, but you don't have to.**\n\n```\nimport time\nfrom alea import AleaTracker\n\n# Initialise the connection to the IntelliGaze Server,\n# using the PyGaze alea code.\ntracker = AleaTracker(\"pg=12\", file_path=\"my_data.tsv\")\n\n# Calibrate the eye tracker, using the default options.\ntracker.calibrate()\n\n# Run for 10 seconds.\nt0 = time.time()\nwhile time.time() - t0 < 10.0:\n # Get the latest sample\n time_stamp, gaze_x, gaze_y, pupil_size = tracker.sample()\n # Print the current sample to the terminal.\n print(\"t=%.3f, x=%.2f, y=%.2f, s=%.2f\" % (time_stamp, gaze_x, gaze_y, pupil_size))\n # Wait for 33 milliseconds.\n time.sleep(0.033)\n\n# Close the connection to the eye tracker.\ntracker.close()\n```\n\n## Troubleshooting\n\n* Make sure the IntelliGaze Server is running! Without it, the Python wrapper will have nothing to talk to.\n* Make sure you install the IntelliGaze Server! You can download it from the IntelliGaze by [Alea Technologies website](https://www.intelligaze.com/en/support/download).\n* Make sure that you are running a Microsoft Windows operating system (tested on Windows 7 and 10). Linux and OS X support is not currently available.\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/esdalmaijer/PyAlea", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-alea", "package_url": "https://pypi.org/project/python-alea/", "platform": "", "project_url": "https://pypi.org/project/python-alea/", "project_urls": { "Homepage": "https://github.com/esdalmaijer/PyAlea" }, "release_url": "https://pypi.org/project/python-alea/0.0.6/", "requires_dist": null, "requires_python": "", "summary": "Python wrapper for the IntelliGaze API by Alea Technologies", "version": "0.0.6" }, "last_serial": 5655861, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "7aadce15af069038559eb75db0864f6f", "sha256": "0aec9a9d3f791b84fcd8fd89cacd08e7af19f64273360be31a51f9b20cf983b9" }, "downloads": -1, "filename": "python_alea-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "7aadce15af069038559eb75db0864f6f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18257, "upload_time": "2019-08-09T11:17:16", "url": "https://files.pythonhosted.org/packages/c5/71/49e7f6cfe64d1e1e0d3c70fad3c74235a377ad7488af07608cbea08ab86d/python_alea-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff8e825ceaf181ce5ef4a310e966827c", "sha256": "6d147b10778e31a2f6045d2d9cd022a34d4c19ab5c26cfcbcdde7a2774eed5f5" }, "downloads": -1, "filename": "python-alea-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ff8e825ceaf181ce5ef4a310e966827c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14088, "upload_time": "2019-08-09T11:17:18", "url": "https://files.pythonhosted.org/packages/a8/0d/5e60c19b419b73d3b58e353ac9b5d1c8ef644438c9dda9992056bb0f1744/python-alea-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0488ecfd9608b61756c545082a71a0db", "sha256": "fcfd599f45cfb51c434453c48f0d83a248d2bad57de52e0acca16e3da132f93c" }, "downloads": -1, "filename": "python_alea-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "0488ecfd9608b61756c545082a71a0db", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 64415, "upload_time": "2019-08-09T11:36:15", "url": "https://files.pythonhosted.org/packages/9c/1a/c63e4dde163d545cf5b5658b9085d6914a54c9a39f912751c4353ad01ae7/python_alea-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a3a80e8ff2c28d1bbd2e09bdee9c0075", "sha256": "05010cad4b10681f6a1334be27e3032459cfc0850b697ae61c89756b1c637b2e" }, "downloads": -1, "filename": "python-alea-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a3a80e8ff2c28d1bbd2e09bdee9c0075", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59306, "upload_time": "2019-08-09T11:36:17", "url": "https://files.pythonhosted.org/packages/49/cf/f1d415624e858980db7bde1645d133bb16aaa2555ab6b22eca8c4e714977/python-alea-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e569bb6a0817da6c398c22f93ce41474", "sha256": "16281d67bc38ec91635cd3c1c1225cddf481b1c234cd593e776c74b2b4528a42" }, "downloads": -1, "filename": "python_alea-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "e569bb6a0817da6c398c22f93ce41474", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 64448, "upload_time": "2019-08-09T13:07:17", "url": "https://files.pythonhosted.org/packages/67/82/dcce2bb50bbda0b4718246dc6e60bc3827908df762a2b0d8eac456c9a8b4/python_alea-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30f8a663ba1c78767422a1f75e95de8d", "sha256": "4194fc396e5a9d153108b689180f2fa2ac48a412efca12e779a8203891629ca9" }, "downloads": -1, "filename": "python-alea-0.0.3.tar.gz", "has_sig": false, "md5_digest": "30f8a663ba1c78767422a1f75e95de8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59425, "upload_time": "2019-08-09T13:07:19", "url": "https://files.pythonhosted.org/packages/4d/96/fd9c7338f81367935c1f5132484a421dc9f4c179ef570a6486030bf69125/python-alea-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "71f515470228705f60425d34dbcea849", "sha256": "d588748c8f48590fe773b6995f4814f03e403e4585a6a578c0d3a555f8618977" }, "downloads": -1, "filename": "python_alea-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "71f515470228705f60425d34dbcea849", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 64400, "upload_time": "2019-08-09T13:09:43", "url": "https://files.pythonhosted.org/packages/37/a9/b9bc334642847771b275139e8d1fc13763fe50aea2ff94175c1a403bae20/python_alea-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "46c42f611f2e32097cf743b73700e8ee", "sha256": "944710bf5a7f5cd963e420540fc6961074b973fd9361227f21fc6425fbb80c3a" }, "downloads": -1, "filename": "python-alea-0.0.4.tar.gz", "has_sig": false, "md5_digest": "46c42f611f2e32097cf743b73700e8ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59424, "upload_time": "2019-08-09T13:09:46", "url": "https://files.pythonhosted.org/packages/d6/22/17af94b82369c370fbd3f7e8fb09b5fa798515d7860564066686dd282489/python-alea-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "16a9547925ad2d44b94065fa7b9dd684", "sha256": "42260833ccc177154933ab7506e027d0478585a4c156522926d35a410e4fa0ce" }, "downloads": -1, "filename": "python_alea-0.0.5-py2-none-any.whl", "has_sig": false, "md5_digest": "16a9547925ad2d44b94065fa7b9dd684", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 64218, "upload_time": "2019-08-09T13:23:45", "url": "https://files.pythonhosted.org/packages/d5/6a/5ea5401d314ecc756d8ab23b15cedc0d47460a1edd7984ec8569146b1606/python_alea-0.0.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f82a6578520967943a1a5600dcab9ad", "sha256": "328e53be37f8edfe841071e4d84f2c6077a8990613399b43505f918bba4aabe5" }, "downloads": -1, "filename": "python-alea-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0f82a6578520967943a1a5600dcab9ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14273, "upload_time": "2019-08-09T13:23:47", "url": "https://files.pythonhosted.org/packages/a8/58/429aba447123dbe066f9d29ee761c1a8430ed1eb4d3a6a30cde97ab178a7/python-alea-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "8e1522ca80ed11044d21b5a4484591b9", "sha256": "2b6a440aaa1d4c60992ad6b3fa2fb5ad14785d7b06e166c118d7661ef84f404f" }, "downloads": -1, "filename": "python_alea-0.0.6-py2-none-any.whl", "has_sig": false, "md5_digest": "8e1522ca80ed11044d21b5a4484591b9", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 65092, "upload_time": "2019-08-09T13:53:45", "url": "https://files.pythonhosted.org/packages/df/8c/0a00316de5d613e23760c973deff3cdbfabfe573e9f0184935e777376bd4/python_alea-0.0.6-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f71232cdb077c57169e11b992d8927ef", "sha256": "8ec03307a725a67dfcc27cd661de367f7c570cf80c97b7c6e3e19086e4accf48" }, "downloads": -1, "filename": "python-alea-0.0.6.tar.gz", "has_sig": false, "md5_digest": "f71232cdb077c57169e11b992d8927ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15965, "upload_time": "2019-08-09T13:53:47", "url": "https://files.pythonhosted.org/packages/b7/a2/fab90f2271e85468d047c5adff3f830f55010f8ed6729ab379fa91645e06/python-alea-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e1522ca80ed11044d21b5a4484591b9", "sha256": "2b6a440aaa1d4c60992ad6b3fa2fb5ad14785d7b06e166c118d7661ef84f404f" }, "downloads": -1, "filename": "python_alea-0.0.6-py2-none-any.whl", "has_sig": false, "md5_digest": "8e1522ca80ed11044d21b5a4484591b9", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 65092, "upload_time": "2019-08-09T13:53:45", "url": "https://files.pythonhosted.org/packages/df/8c/0a00316de5d613e23760c973deff3cdbfabfe573e9f0184935e777376bd4/python_alea-0.0.6-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f71232cdb077c57169e11b992d8927ef", "sha256": "8ec03307a725a67dfcc27cd661de367f7c570cf80c97b7c6e3e19086e4accf48" }, "downloads": -1, "filename": "python-alea-0.0.6.tar.gz", "has_sig": false, "md5_digest": "f71232cdb077c57169e11b992d8927ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15965, "upload_time": "2019-08-09T13:53:47", "url": "https://files.pythonhosted.org/packages/b7/a2/fab90f2271e85468d047c5adff3f830f55010f8ed6729ab379fa91645e06/python-alea-0.0.6.tar.gz" } ] }