This is a Python library for interacting with a webman-mod server. The library provides a set of classes and methods to perform various tasks such as browsing files, managing system settings, controlling the PlayStation 3 console, and more.
You can install this library using pip:
pip install pyWebman
Below is a guide on how to use the different classes and methods provided by this library.
First, you need to create an instance of the WebMan
class with the IP address of your webman-mod server:
from pyWebman import WebMan
# Replace 'your_ps3_ip' with the actual IP address of your PS3
webman_instance = WebMan(('your_ps3_ip')
The General
class provides methods to browse files, manage settings, and list games.
general = webman_instance.General(webman_instance)
# Browse a specific path
general.browse_path('path/to/browse')
# Open settings
general.open_settings()
# List games in HTML grid
general.list_games_in_html_grid()
The Temperature
class allows you to manage the fan speed and monitor system temperatures.
temperature = webman_instance.Temperature(webman_instance)
# Show system info
temperature.show_system_info()
# Set fan speed
temperature.set_fan_speed(50)
The Mount
class provides methods to mount and unmount games and ISO files.
mount = webman_instance.Mount(webman_instance)
# Mount a game
mount.mount_path_or_iso('path/to/game.iso')
# Unmount the current game
mount.unmount_game()
The Stealth
class offers methods to manage system identifiers and syscall modes.
stealth = webman_instance.Stealth(webman_instance)
# Change IDPS and PSID
stealth.change_idps_psid()
# Disable syscalls
stealth.disable_syscalls()
The Files
class provides various methods for file operations such as copying, moving, deleting, and editing files.
files = webman_instance.Files(webman_instance)
# Copy files
files.copy_files('source/path', 'destination/path')
# Delete files
files.delete_files('path/to/delete')
The InGame
class allows you to manage in-game settings and features.
ingame = webman_instance.InGame(webman_instance)
# Toggle video recording
ingame.toggle_video_recording()
# Enable in-game background music
ingame.enable_ingame_bgm()
The XMB
class provides methods to navigate the XMB, install packages, and download files.
xmb = webman_instance.XMB(webman_instance)
# Install a package
xmb.install_package('path/to/package.pkg')
# Download a file to the packages directory
xmb.download_file_to_packages('http://example.com/file.pkg')
The Debug
class offers tools for debugging and managing system processes.
debug = webman_instance.Debug(webman_instance)
# Ring the buzzer
debug.ring_buzzer()
# Manage LED settings
debug.manage_leds()
The Notifications
class allows you to send popup messages and notifications.
notifications = webman_instance.Notifications(webman_instance)
# Send a popup message
notifications.popup('This is a test message')
The Gamepad
class provides methods to simulate gamepad inputs.
gamepad = webman_instance.Gamepad(webman_instance)
# Simulate a button press
gamepad.pad('cross')
# Hold a button
gamepad.hold('circle')
# Release a button
gamepad.release()
If you would like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License.
This library is inspired by the webman-mod project and provides a convenient way to interact with it using Python.
By following this guide, you should be able to effectively use the WebMan
Python library to interact with your webman-mod server and perform a wide range of tasks programmatically.