Skip to main content

Kotonebot is game automation library based on computer vision technology, works for Windows and Android.

Project description

kotonebot

[!WARNING] 本项目仍然处于早期开发阶段,可能随时会发生 breaking change。如果要使用,建议 pin 到一个具体的版本。

kotonebot 是一个使用 Python 编写,基于 OpenCV、RapidOCR 等技术,致力于简化 Python 游戏自动化脚本编写流程的框架。

特性

  • 层次化引入
    • 包含 Library、Framework、Application 三个不同层次,分别封装到不同程度,可自由选择
  • 平台无关的输入输出(截图与模拟点击)
  • 基于代码生成的图片资源引用
    • 避免硬编码字符串
  • 图像/OCR 识别结果追踪 & 可视化查看工具
  • 开箱即用的模拟器管理(目前仅支持 MuMu12 与雷电模拟器)

安装

要求:Python >= 3.10

# Windows Host, Windows Client
pip install kotonebot[windows]
# Windows Host, Android Client
pip install kotonebot[android]
# Development dependencies
pip install kotonebot[dev]

快速开始

WIP

协同开发

有时候你可能想以源码方式安装 kotonebot,以便与自己的项目一起调试修改。此时,如果你以 pip install -e /path/to/kotonebot 的方式安装,Pylance 可能无法正常静态分析。 解决方案是在 VSCode 里搜索 python.analysis.extraPaths 并将其设置为你本地 kotonebot 的根目录。

文档

WIP

其他

本项目分离自 KotonesAutoAssistant,因此 c69130 以前的提交均为 KotonesAutoAssistant 的历史提交。

由于使用 filter-repo 移除了大量无用文件,因此历史提交信息和更改的文件可能无法完全对应。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kotonebot-0.16.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kotonebot-0.16.0-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file kotonebot-0.16.0.tar.gz.

File metadata

  • Download URL: kotonebot-0.16.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kotonebot-0.16.0.tar.gz
Algorithm Hash digest
SHA256 272d4b61ad8fe04e9cc084b889e270fb112f5dba0cbf83256bedf19800e953ee
MD5 86a5ab04c91c6f4c8c495a5c9ff9e0b5
BLAKE2b-256 80960a2cdf16b0e45a3a30168e106f23c495b1b9e8a79804e26fb6302221b098

See more details on using hashes here.

File details

Details for the file kotonebot-0.16.0-py3-none-any.whl.

File metadata

  • Download URL: kotonebot-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kotonebot-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec2aa195ddfff3e505d1f106558c3bea29d8655234bb1c8b6b7fc4e306d1c81f
MD5 206209236e026f2dc28d1c28f90c4ff6
BLAKE2b-256 a7d71e65314313e6fa34ef4bca42d7f52b34b433c8aa08379daee118d1ef81b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page