python wrapper for ldplayer
Project description
pyldplayer
this module provides all the necessary interfaces to interact with LDPlayer app
NOTE: since v2.0, the module will not contain any automation functionalities, you should refer to autoldplayer
module instead
Installation
pip install pyldplayer
Usage
from pyldplayer.console import Console
from pyldplayer.process import DefaultProcess
from pyldplayer.windows import WindowMgr
x = DefaultProcess("{path}")
w = Console(x)
k = w.list2()
# launch in root mode
k[0].modify(root=True)
k[0].launch()
k[0].refresh()
Features
Layer 1: Process
- communicates directly with the LDConsole.exe cli using
process.BaseProcess
this is the only way to interact with the app through command line interfaces
process.BaseProcess
is implemented on top ofprocess.BaseProcessInterface
and integratedprocess.ProcessVerifier
process.CachedProcess
is both an example of extending features to theprocess.BaseProcess
and a way to cache executed commandsprocess.ProcessVerifier
checks if the path is valid
Layer 2: Console
Console
provides all CLI APIsConsole.list2
returns a list ofConsoleInstance
objects
Layer 3: Files
ConfigMgr
andKmpMgr
provide access toconfig
andkmp
files, as well as loading them into pydantic modelsLeidianCfg
for instanced configLeidiansCfg
for host config
Layer 4: Windows
- Provides
pygetwindow
related functions
This allows the following
- window orientation
WindowMgr.orientation
- window resizing
WindowMgr.resize
Optional
- contains extended and optional implementations
pyautogui
is needed for some features
Required dependencies
pygetwindow
screeninfo
pydantic
Official Documentations
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
pyldplayer-2.0.0.tar.gz
(16.4 kB
view details)
Built Distribution
File details
Details for the file pyldplayer-2.0.0.tar.gz
.
File metadata
- Download URL: pyldplayer-2.0.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e15c409e599cdd6ddc9f4e0ccc81af529431a69ab757ec9beb34f46ab09d85d9 |
|
MD5 | 0bf27b36577b3aa53efeccfdf18d0914 |
|
BLAKE2b-256 | 234bfef430849d71d585ffac454b43ee5f6aecfc25e2dbb668cf9b5cac6f1b6c |
File details
Details for the file pyldplayer-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyldplayer-2.0.0-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a05ac46966b4a74282b319900f02c5cac8297bb4c976108a1d451a06c903d45c |
|
MD5 | e7b31d0821711ddec9d4861d3d124ca0 |
|
BLAKE2b-256 | 89f90710265103d280de8851eaff494e2e9883d65f8afa320a8007c57cc3ca9f |