{ "info": { "author": "Al Sweigart", "author_email": "al@inventwithpython.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "============\nMooseGesture\n============\n\nA mouse gesture recognition module for Python 2 and 3.\n\nThis module is fed a series of XY coordinates (which can come from the mouse or another source) and can recognize when the mouse is moving in one of the eight cardinal/diagonal directions.\n\nThese mouse movements can be combined to form \"mouse gestures\" to perform different commands.\n\nInstallation\n============\n\n ``pip install moosegesture``\n\nQuickstart Guide\n================\n\nPass a path as sequence of (x, y) tuples to `getGesture()`, which will return a list of directions that the path takes. These are the up, down, left, right, and diagonal directions represented by the following strings:\n\n ``'U', 'D', 'L', 'R'``\n\n ``'UL', 'UR', 'DL', 'DR'``\n\nThey are stored in the following constants:\n\n ``UP, DOWN, LEFT, RIGHT``\n\n ``UPLEFT, UPRIGHT, DOWNLEFT, DOWNRIGHT``\n\nExample usage:\n\n >>> import moosegesture\n >>> moosegesture.getGesture([(332, 385), (332, 287), (332, 175), (330, 69), (324, 13), (322, 0)])\n ['U']\n\nMooseGesture can also find the closest matching gesture in a list of gestures, using Levenshtein edit distance:\n\n >>> path = ['D', 'L', 'R']\n >>> gestures = [['D', 'L', 'D'], ['D', 'R', 'UR']]\n >>> moosegesture.findClosestMatchingGesture(path, gestures)\n ['D', 'L', 'D']\n\nThe same direction will never appear consecutively, i.e. there will never be a \"right-left-left\" gesture, only \"right-left\".\n\nDemo Programs\n=============\n\nThe repo at https://github.com/asweigart/moosegesture contains a `tests/demoGestureApp.py` which uses Pygame to display a small window. You can draw gestures in this window by dragging the mouse, and the recognized gesture will appear at the bottom.\n\nThe `simongesture.py` game is a Simon game that make uses of `moosegesture`. It requires Pygame to play.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/asweigart/moosegesture", "keywords": "mouse gesture", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "MooseGesture", "package_url": "https://pypi.org/project/MooseGesture/", "platform": "", "project_url": "https://pypi.org/project/MooseGesture/", "project_urls": { "Homepage": "https://github.com/asweigart/moosegesture" }, "release_url": "https://pypi.org/project/MooseGesture/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "A mouse gesture recognition module for Python.", "version": "1.0.2" }, "last_serial": 4233323, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "eb11b8aaddf7f8bbac38e35beddf0447", "sha256": "6ce14894be400cf1740fe2342a22f00afd331cac0aa77f27707b001bf5450dbc" }, "downloads": -1, "filename": "MooseGesture-0.9.0.zip", "has_sig": false, "md5_digest": "eb11b8aaddf7f8bbac38e35beddf0447", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16918, "upload_time": "2014-08-04T00:57:35", "url": "https://files.pythonhosted.org/packages/d1/07/c74a96384f1a3b644890262533b29dda640674908a3d623aeed382eb5455/MooseGesture-0.9.0.zip" } ], "1": [ { "comment_text": "", "digests": { "md5": "cb049f0c88bbb0540bb3161f56dd46ba", "sha256": "384fc0e9946ce8cf384cb14d9056765cb0af0ca1991de4e522fe06f2e81c7940" }, "downloads": -1, "filename": "MooseGesture-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cb049f0c88bbb0540bb3161f56dd46ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16111, "upload_time": "2018-08-31T02:05:27", "url": "https://files.pythonhosted.org/packages/7e/a6/4332f9b9bcacc9813a8c11026f12b235b25bb76ede1f93c4fdcb1e9b02cf/MooseGesture-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9ca9aafb91192149c28d6a66198be369", "sha256": "f9348c80a18048e3246306f76b338c0796a070e33d91ebc47c27067d39958f9f" }, "downloads": -1, "filename": "MooseGesture-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9ca9aafb91192149c28d6a66198be369", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17840, "upload_time": "2018-09-03T05:19:29", "url": "https://files.pythonhosted.org/packages/51/f1/7896eb1940b7d076e8c69b463391732e27bafcd7ed1181468534fb9617f0/MooseGesture-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "fcb8be09be6dae7d90cc2ea33a61ab81", "sha256": "72dcc56b3a2749e8d72abc77c7d9028222551b3019ac06e08eed9cbd754f2f47" }, "downloads": -1, "filename": "MooseGesture-1.0.2.tar.gz", "has_sig": false, "md5_digest": "fcb8be09be6dae7d90cc2ea33a61ab81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18135, "upload_time": "2018-09-03T05:22:12", "url": "https://files.pythonhosted.org/packages/cd/69/f72a254e71e071f119fcb1be271c3f466996934bcd3d30a8a3829f4bfefd/MooseGesture-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fcb8be09be6dae7d90cc2ea33a61ab81", "sha256": "72dcc56b3a2749e8d72abc77c7d9028222551b3019ac06e08eed9cbd754f2f47" }, "downloads": -1, "filename": "MooseGesture-1.0.2.tar.gz", "has_sig": false, "md5_digest": "fcb8be09be6dae7d90cc2ea33a61ab81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18135, "upload_time": "2018-09-03T05:22:12", "url": "https://files.pythonhosted.org/packages/cd/69/f72a254e71e071f119fcb1be271c3f466996934bcd3d30a8a3829f4bfefd/MooseGesture-1.0.2.tar.gz" } ] }