WebSocket bridge for headless / scripted control of Godot scenes.
Project description
godot-cli-control
WebSocket bridge for headless / scripted control of Godot 4 scenes — Python client.
Install
pip install godot-cli-control
Requires Python ≥ 3.10. Companion Godot plugin must be installed and enabled in your Godot project (see the plugin README for setup).
Usage
import asyncio
from godot_cli_control import GameClient
async def main():
async with GameClient(port=9877) as client:
# Inspect scene
tree = await client.get_scene_tree(depth=3)
print(tree)
# Interact
await client.click("/root/MyScene/Button")
await client.action_press("jump")
await client.wait_game_time(0.5)
await client.action_release("jump")
# Capture
png_bytes = await client.screenshot()
open("frame.png", "wb").write(png_bytes)
asyncio.run(main())
CLI
python -m godot_cli_control tree 3
python -m godot_cli_control click /root/MyScene/Button
python -m godot_cli_control screenshot /tmp/frame.png
Documentation
See the Godot plugin README for the full RPC reference, activation modes, security model, and known limitations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file godot_cli_control-0.1.5.tar.gz.
File metadata
- Download URL: godot_cli_control-0.1.5.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8364979e65710a8ead6a9200af5a377bb479737a98103c60399daa59775222c
|
|
| MD5 |
c7a2da8d93ada5a654923b0e0e8870dd
|
|
| BLAKE2b-256 |
1886cf2d464ba572342b257c465d5f298d17501c917184f17651475b112688ef
|
Provenance
The following attestation bundles were made for godot_cli_control-0.1.5.tar.gz:
Publisher:
release.yml on ClaymanTwinkle/godot-cli-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
godot_cli_control-0.1.5.tar.gz -
Subject digest:
f8364979e65710a8ead6a9200af5a377bb479737a98103c60399daa59775222c - Sigstore transparency entry: 1396998864
- Sigstore integration time:
-
Permalink:
ClaymanTwinkle/godot-cli-control@002a49554c497db080d62509fd4c805f0badb66b -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/ClaymanTwinkle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@002a49554c497db080d62509fd4c805f0badb66b -
Trigger Event:
push
-
Statement type:
File details
Details for the file godot_cli_control-0.1.5-py3-none-any.whl.
File metadata
- Download URL: godot_cli_control-0.1.5-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ef81670b12fffe439c2e936559bdf0323a755700c62e3e3b1c15323c32b2c12
|
|
| MD5 |
c39f4751f328400dde0723ec03fb41ef
|
|
| BLAKE2b-256 |
4cecbe6738d6cc3d0be59456273a239b070ff7e85441949377593ab1a7fbcc11
|
Provenance
The following attestation bundles were made for godot_cli_control-0.1.5-py3-none-any.whl:
Publisher:
release.yml on ClaymanTwinkle/godot-cli-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
godot_cli_control-0.1.5-py3-none-any.whl -
Subject digest:
7ef81670b12fffe439c2e936559bdf0323a755700c62e3e3b1c15323c32b2c12 - Sigstore transparency entry: 1396998867
- Sigstore integration time:
-
Permalink:
ClaymanTwinkle/godot-cli-control@002a49554c497db080d62509fd4c805f0badb66b -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/ClaymanTwinkle
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@002a49554c497db080d62509fd4c805f0badb66b -
Trigger Event:
push
-
Statement type: