Skip to main content

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 of process.BaseProcessInterface and integrated process.ProcessVerifier
  • process.CachedProcess is both an example of extending features to the process.BaseProcess and a way to cache executed commands
  • process.ProcessVerifier checks if the path is valid

Layer 2: Console

  • Console provides all CLI APIs
  • Console.list2 returns a list of ConsoleInstance objects

Layer 3: Files

  • ConfigMgr and KmpMgr provide access to config and kmp files, as well as loading them into pydantic models
  • LeidianCfg for instanced config
  • LeidiansCfg 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

cli doc

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

pyldplayer-2.0.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

pyldplayer-2.0.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

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

Hashes for pyldplayer-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e15c409e599cdd6ddc9f4e0ccc81af529431a69ab757ec9beb34f46ab09d85d9
MD5 0bf27b36577b3aa53efeccfdf18d0914
BLAKE2b-256 234bfef430849d71d585ffac454b43ee5f6aecfc25e2dbb668cf9b5cac6f1b6c

See more details on using hashes here.

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

Hashes for pyldplayer-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a05ac46966b4a74282b319900f02c5cac8297bb4c976108a1d451a06c903d45c
MD5 e7b31d0821711ddec9d4861d3d124ca0
BLAKE2b-256 89f90710265103d280de8851eaff494e2e9883d65f8afa320a8007c57cc3ca9f

See more details on using hashes here.

Supported by

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