Skip to main content

Pybotter: Program Automation Python Library

Using Python Currently under development

Installation

Run the following command to install:

pip install pybotter

Usage

A template provided in the package for simplification.

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

Release files for pybotter 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pybotter 0.1.1
File Size Uploaded
pybotter-0.1.1.tar.gz 123.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pybotter 0.1.1
File Interpreter ABI Platform
pybotter-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 247.3 kB

Release files / pybotter-0.1.1.tar.gz

Download URL pybotter-0.1.1.tar.gz
Size 123.7 kB
Tags Source
SHA-256 checksum
How to use checksums
caf6d7409156cae0e2f4c9e06c610e68f75025bb949039c5cd1389bffb83dc17
BLAKE2b-256 checksum
How to use checksums
b1a4e298858585e80fe97aca6dfe7690b9653cad93ea522f4d1ce5b2f001bccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / pybotter-0.1.1-py3-none-any.whl

Download URL pybotter-0.1.1-py3-none-any.whl
Size 123.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31c4acb4751ee258916d2b0a216a40bfac76e088e59732370bc87f4714929364
BLAKE2b-256 checksum
How to use checksums
b8de20eb418f2876281ae6154eb5ef03403fffa0acfab30c81bea6053332ae6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page