rpze: Remote Python, Zombie: Endless
Project description
rpze
Remote Python, Zombie Endless(or endless rp?)
一个远程Python的Plants vs. Zombies TAS及ize测试框架.
主库位于GitHub.
使用
pip install rpze
下载, 下载后通过python -m rpze --path "your\path\to\pvz.exe"
验证安装, 详情见主库readme.
一个简单的完整rpze脚本示例如下:
from rpze.iztest import *
with InjectedGame(r"your\path\to\pvz.exe") as game:
iz_test = IzTest(game.controller).init_by_str('''
1000 -1
3-0 4-0 5-0 3-3
.....
.....
bs3_c
b2ljh
blyl_
cg cg xg ww
0 1 300 700
4-6 4-6 4-6 4-6''')
print(iz_test.start_test(True))
结构
总体分成五个包:
rp_extend
: 对控制pvz游戏本地运作的基本操作的封装basic
: DLL注入, 游戏启动, 汇编代码等基础功能structs
: PvZ内数据结构以及部分method的的封装flow
: coroutine-like测试编写相关的函数iztest
: IzTest测试功能以及工具函数examples
: 上述的测试功能的编写例子
其中, 若仅对Python的pvz框架感兴趣则只需关注前三个包, 对ize测试感兴趣则着重模仿examples
并大致了解structs
的成员(Plants
和Zombies
).
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
rpze-0.2.1.tar.gz
(156.6 kB
view details)
Built Distributions
rpze-0.2.1-cp312-cp312-win_amd64.whl
(168.4 kB
view details)
rpze-0.2.1-cp311-cp311-win_amd64.whl
(168.7 kB
view details)
File details
Details for the file rpze-0.2.1.tar.gz
.
File metadata
- Download URL: rpze-0.2.1.tar.gz
- Upload date:
- Size: 156.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 102e9d014816cd6e310e2532ed3250e27cbf8a557190d0ae9e0a9873823d0a72 |
|
MD5 | 0390fbbb7732f3e8ee0d56b9d6cb7599 |
|
BLAKE2b-256 | c49118e2240dc6976b6150f73d097b55c1bae88731e05167ab3644989a1ea41b |
File details
Details for the file rpze-0.2.1-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: rpze-0.2.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 168.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 652db3c3472ace0c7f94191e63a82b601e0c5074a7ce3745dc6c807709a10e12 |
|
MD5 | c4482cb837c7b5cf51732f7519200383 |
|
BLAKE2b-256 | 2f546e34be64097e13267b407e34bf63645e6f9395d6a5dde975c9d7a542a515 |
File details
Details for the file rpze-0.2.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: rpze-0.2.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 168.7 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca430d8e897c6365f4294bf3a54f4d13268c63954cbb0d5faa9298afad513ee8 |
|
MD5 | 1612c84cf72fd367e1d428a2e79985f1 |
|
BLAKE2b-256 | b62d60bb33f1b4d3bfeeb416fe6ba006ef9b3ee1f41e236e7c8bc8673151a3b1 |