{ "info": { "author": "Artur Barseghyan", "author_email": "artur.barseghyan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "===================================================\nxinput\n===================================================\nEnable/disable xinput devices (for example, a touchpad) from terminal or using the API.\n\nPrerequisites\n===================================================\n- Python 2.6.8+, 2.7.+, 3.3.+\n\nInstallation\n===================================================\nLatest stable version from PyPI.\n\n $ pip install xinput\n\nLatest stable version from bitbucket.\n\n $ pip install -e hg+https://bitbucket.org/barseghyanartur/xinput@stable#egg=xinput\n\nLatest stable version from github.\n\n $ pip install -e git+https://github.com/barseghyanartur/xinput@stable#egg=xinput\n\nUsage examples\n===================================================\nFirst argument represents device state (0 for disable and 1 for enable). Second argument represents device name.\n\nBy default we operate with `Synaptics TouchPad` but it's possible to have custom device names.\n\nAfter installation you should be able to disable/enable touchpad by typing \"disable-touchpad\" or \"enable-touchpad\"\ncommands in your terminal.\n\nCommand-line\n----------------------------------------------------\nTo enable Synaptics TouchPad, type in terminal:\n\n $ xinput-manage 1 Synaptic TouchPad\n\nTo disable Genius Optical Mouse, type in terminal:\n\n $ xinput-manage 0 Genius Optical Mouse\n\nThere are also shortcuts for enabling/disabling the touchpad.\n\nType the following in terminal to disable the touchpad:\n\n $ disable-touchpad\n\nType the following in terminal to enable the touchpad:\n\n $ enable-touchpad\n\nProgrammatically\n------------------------------\n>>> from xinput import operate_xinput_device, MODE_ENABLE, DEVICE_NAME_SYNAPTIC, MODE_DISABLE\n>>> operate_xinput_device(MODE_DISABLE, DEVICE_NAME_SYNAPTIC)\n>>> operate_xinput_device(MODE_ENABLE, DEVICE_NAME_SYNAPTIC)\n\nLicense\n===================================================\nGPL 2.0/LGPL 2.1\n\nSupport\n===================================================\nFor any issues contact me at the e-mail given in the `Author` section.\n\nAuthor\n===================================================\nArtur Barseghyan ", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/barseghyanartur/xinput", "keywords": "xinput", "license": "GPL 2.0/LGPL 2.1", "maintainer": null, "maintainer_email": null, "name": "xinput", "package_url": "https://pypi.org/project/xinput/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xinput/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/barseghyanartur/xinput" }, "release_url": "https://pypi.org/project/xinput/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Enable/disable xinput devices from terminal or using the API.", "version": "0.1.3" }, "last_serial": 3472170, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bc69ea596a052f6fcbc99053007929ca", "sha256": "959743518a332b63951982e79d8533ddf216eff6e46b21c548d7ac5d725cfe26" }, "downloads": -1, "filename": "xinput-0.1.tar.gz", "has_sig": false, "md5_digest": "bc69ea596a052f6fcbc99053007929ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3779, "upload_time": "2014-05-06T09:56:25", "url": "https://files.pythonhosted.org/packages/31/1b/ea36dcc7f960143d8d82118b510bbc1d9b4f0a9f0b4b66822ee0cb9a74f7/xinput-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2d1149d366c654c099fb00084b5c58cb", "sha256": "3f0ef86dbc3ca3d41b0be911d0dd57502f4e2b79ebbb6f4de59f551db8ca1972" }, "downloads": -1, "filename": "xinput-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2d1149d366c654c099fb00084b5c58cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3903, "upload_time": "2014-05-06T21:27:47", "url": "https://files.pythonhosted.org/packages/9a/d9/543f8280297a2eed3aa3a12957554526bbd38327942afd460031a20f1b1c/xinput-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "72198701c94b60a34b071b7a3ffbd484", "sha256": "3974291ed6047fefb227441cf5170087f917c0b8c8c9b7a4684ac87f3a9fd3dd" }, "downloads": -1, "filename": "xinput-0.1.2.tar.gz", "has_sig": false, "md5_digest": "72198701c94b60a34b071b7a3ffbd484", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4044, "upload_time": "2014-08-29T21:55:49", "url": "https://files.pythonhosted.org/packages/b0/3c/8c9bca71725399e15bc1acad46feda5ec2be787923892acc24f334756d5c/xinput-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f2cf5fc4177a0acf30b7a182d02c6dd6", "sha256": "5fa0561d29f8dd58dbae60452723751d2f214f8a3b2423d7532d515767e310c6" }, "downloads": -1, "filename": "xinput-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f2cf5fc4177a0acf30b7a182d02c6dd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4050, "upload_time": "2014-08-29T21:59:30", "url": "https://files.pythonhosted.org/packages/a2/07/b925f23dd5035c72a7c3ba89130637ea4055c1ea983fa59d61c36819cf2d/xinput-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f2cf5fc4177a0acf30b7a182d02c6dd6", "sha256": "5fa0561d29f8dd58dbae60452723751d2f214f8a3b2423d7532d515767e310c6" }, "downloads": -1, "filename": "xinput-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f2cf5fc4177a0acf30b7a182d02c6dd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4050, "upload_time": "2014-08-29T21:59:30", "url": "https://files.pythonhosted.org/packages/a2/07/b925f23dd5035c72a7c3ba89130637ea4055c1ea983fa59d61c36819cf2d/xinput-0.1.3.tar.gz" } ] }