pybotter


Namepybotter JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/s3794510/pybotter
SummaryThis module is for doing automation tasks on Windows 10 or above
upload_time2023-01-03 08:04:12
maintainer
docs_urlNone
authorCedrus Z Maize
requires_python<3.12,>=3.0
license
keywords python opencv mouse keyboard automation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pybotter: Program Automation Python Library
Using Python
Currently under development

## Installation
Run the following command to install:

```python
pip install pybotter
```

## Usage

A template provided in the package for simplification.

```python
from pybotter import PyBot

# Change path of the system
#os.chdir(os.path.dirname(os.path.abspath(__file__)))

# (**) Type the exact name of the window
window_name = "Title of the target window"

# Show list of windows
#PyBot.list_windows()

# Debug mode: show screen shot of the target window
debug = None
#debug = 'debug' 

# (**) Initialise the bot
bot = PyBot(window_name, debug)

# (**) Add needle images first
@bot.variables
def add_variables():
    #bot.add_image("IMAGE_NAME", "IMAGE_PATH")
    pass


# (**) Add bot actions that run during the main loop
@bot.mainloop
def bot_run():
    pass


# Resize the target window
#bot.resize(640,380)

# (**) Initiate adding variables, MUST RUN THIS BEFORE THE MAIN LOOP
add_variables()

# (**) Run the bot
bot_run()
```

Sound effects obtained from https://www.zapsplat.com

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/s3794510/pybotter",
    "name": "pybotter",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "<3.12,>=3.0",
    "maintainer_email": "",
    "keywords": "python,opencv,mouse,keyboard,automation",
    "author": "Cedrus Z Maize",
    "author_email": "servant@theecee.dev",
    "download_url": "https://files.pythonhosted.org/packages/b1/a4/e298858585e80fe97aca6dfe7690b9653cad93ea522f4d1ce5b2f001bccd/pybotter-0.1.1.tar.gz",
    "platform": null,
    "description": "# Pybotter: Program Automation Python Library\r\nUsing Python\r\nCurrently under development\r\n\r\n## Installation\r\nRun the following command to install:\r\n\r\n```python\r\npip install pybotter\r\n```\r\n\r\n## Usage\r\n\r\nA template provided in the package for simplification.\r\n\r\n```python\r\nfrom pybotter import PyBot\r\n\r\n# Change path of the system\r\n#os.chdir(os.path.dirname(os.path.abspath(__file__)))\r\n\r\n# (**) Type the exact name of the window\r\nwindow_name = \"Title of the target window\"\r\n\r\n# Show list of windows\r\n#PyBot.list_windows()\r\n\r\n# Debug mode: show screen shot of the target window\r\ndebug = None\r\n#debug = 'debug' \r\n\r\n# (**) Initialise the bot\r\nbot = PyBot(window_name, debug)\r\n\r\n# (**) Add needle images first\r\n@bot.variables\r\ndef add_variables():\r\n    #bot.add_image(\"IMAGE_NAME\", \"IMAGE_PATH\")\r\n    pass\r\n\r\n\r\n# (**) Add bot actions that run during the main loop\r\n@bot.mainloop\r\ndef bot_run():\r\n    pass\r\n\r\n\r\n# Resize the target window\r\n#bot.resize(640,380)\r\n\r\n# (**) Initiate adding variables, MUST RUN THIS BEFORE THE MAIN LOOP\r\nadd_variables()\r\n\r\n# (**) Run the bot\r\nbot_run()\r\n```\r\n\r\nSound effects obtained from https://www.zapsplat.com\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This module is for doing automation tasks on Windows 10 or above",
    "version": "0.1.1",
    "split_keywords": [
        "python",
        "opencv",
        "mouse",
        "keyboard",
        "automation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b8de20eb418f2876281ae6154eb5ef03403fffa0acfab30c81bea6053332ae6b",
                "md5": "08d1ced48b993f249b47b1f993189c78",
                "sha256": "31c4acb4751ee258916d2b0a216a40bfac76e088e59732370bc87f4714929364"
            },
            "downloads": -1,
            "filename": "pybotter-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "08d1ced48b993f249b47b1f993189c78",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.0",
            "size": 123528,
            "upload_time": "2023-01-03T08:04:09",
            "upload_time_iso_8601": "2023-01-03T08:04:09.526678Z",
            "url": "https://files.pythonhosted.org/packages/b8/de/20eb418f2876281ae6154eb5ef03403fffa0acfab30c81bea6053332ae6b/pybotter-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1a4e298858585e80fe97aca6dfe7690b9653cad93ea522f4d1ce5b2f001bccd",
                "md5": "368327459314d52a2754c5709bf61f23",
                "sha256": "caf6d7409156cae0e2f4c9e06c610e68f75025bb949039c5cd1389bffb83dc17"
            },
            "downloads": -1,
            "filename": "pybotter-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "368327459314d52a2754c5709bf61f23",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.0",
            "size": 123730,
            "upload_time": "2023-01-03T08:04:12",
            "upload_time_iso_8601": "2023-01-03T08:04:12.726958Z",
            "url": "https://files.pythonhosted.org/packages/b1/a4/e298858585e80fe97aca6dfe7690b9653cad93ea522f4d1ce5b2f001bccd/pybotter-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 08:04:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "s3794510",
    "github_project": "pybotter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pybotter"
}
        
Elapsed time: 0.02874s