• 大小: 84KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: Python
  • 标签:

资源简介

PyUserInput:跨平台的,控制鼠标和键盘的python模块。简单的安装和使用。

资源截图

代码片段和文件信息

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup
import os
import sys


def long_description():
    readme = os.path.join(os.path.dirname(__file__) ‘README.md‘)
    with open(readme ‘r‘) as inf:
        readme_text = inf.read()
    return(readme_text)

setup(name=‘PyUserInput‘
      version=‘0.1.9‘
      description=‘A simple cross-platform module for mouse and keyboard control‘
      long_description=long_description()
      author=‘Paul Barton‘
      #Original author of PyMouse: Pepijn de Vos
      author_email=‘pablo.barton@gmail.com‘
      url=‘https://github.com/SavinaRoja/PyUserInput‘
      package_dir = {‘‘: ‘.‘}
      packages = [‘pykeyboard‘ ‘pymouse‘]
      license=‘http://www.gnu.org/licenses/gpl-3.0.html‘
      keywords=‘mousekeyboard user input event‘
      )

def dependency_check(dep_list):
    for dep in dep_list:
        try:
            __import__(dep)
        except ImportError:
            print(‘Missing dependency could not import this module: {0}‘.format(dep))

#Check for dependencies
if sys.platform == ‘darwin‘:  # Mac
    dependency_check([‘Quartz‘ ‘AppKit‘])
elif sys.platform == ‘win32‘:  # Windows
    dependency_check([‘win32api‘ ‘win32con‘ ‘pythoncom‘ ‘pyHook‘])
else:  # X11 (LInux)
    dependency_check([‘Xlib‘])

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-02-25 17:07  PyUserInput-master\
     文件         315  2016-02-25 17:07  PyUserInput-master\.gitignore
     文件       35147  2016-02-25 17:07  PyUserInput-master\LICENSE.txt
     文件          13  2016-02-25 17:07  PyUserInput-master\MANIFEST.in
     文件        5065  2016-02-25 17:07  PyUserInput-master\README.md
     目录           0  2016-02-25 17:07  PyUserInput-master\examples\
     文件         567  2016-02-25 17:07  PyUserInput-master\examples\clickonacci.py
     文件        2183  2016-02-25 17:07  PyUserInput-master\examples\filetranscriber.py
     文件        1456  2016-02-25 17:07  PyUserInput-master\examples\mouse.py
     文件        4086  2016-02-25 17:07  PyUserInput-master\examples\mouselogger
     目录           0  2016-02-25 17:07  PyUserInput-master\pykeyboard\
     文件        1250  2016-02-25 17:07  PyUserInput-master\pykeyboard\__init__.py
     文件        7566  2016-02-25 17:07  PyUserInput-master\pykeyboard\base.py
     文件         654  2016-02-25 17:07  PyUserInput-master\pykeyboard\java_.py
     文件        6877  2016-02-25 17:07  PyUserInput-master\pykeyboard\mac.py
     文件         654  2016-02-25 17:07  PyUserInput-master\pykeyboard\mir.py
     文件         654  2016-02-25 17:07  PyUserInput-master\pykeyboard\wayland.py
     文件       11870  2016-02-25 17:07  PyUserInput-master\pykeyboard\windows.py
     文件       22178  2016-02-25 17:07  PyUserInput-master\pykeyboard\x11.py
     文件       24426  2016-02-25 17:07  PyUserInput-master\pykeyboard\x11_keysyms.py
     目录           0  2016-02-25 17:07  PyUserInput-master\pymouse\
     文件        1355  2016-02-25 17:07  PyUserInput-master\pymouse\__init__.py
     文件        4047  2016-02-25 17:07  PyUserInput-master\pymouse\base.py
     文件        1564  2016-02-25 17:07  PyUserInput-master\pymouse\java_.py
     文件        1039  2016-02-25 17:07  PyUserInput-master\pymouse\license_notice.txt
     文件        5547  2016-02-25 17:07  PyUserInput-master\pymouse\mac.py
     文件         654  2016-02-25 17:07  PyUserInput-master\pymouse\mir.py
     文件         654  2016-02-25 17:07  PyUserInput-master\pymouse\wayland.py
     文件        4868  2016-02-25 17:07  PyUserInput-master\pymouse\windows.py
     文件        8098  2016-02-25 17:07  PyUserInput-master\pymouse\x11.py
     目录           0  2016-02-25 17:07  PyUserInput-master\reference_materials\
............此处省略10个文件信息

评论

共有 条评论