python wrapper for LDPlayer with no additional dependencies
Project description
pyldplayer
a python wrapper for LDPlayer
Installation
pip install pyldplayer
to install an older version, use
pip install pyldplayer==3.0.6
About
This project went through several major reworks. Initially, it was a simple wrapper for the commandline and nothing else. Later, Windows API and autogui related functions were added. Considering the project was becoming more and more bloated, a new project reldplayer was added to host those functions. This project now contains no additional dependencies but it has all the necessary implementations for extension.
Usage
1. to initialize
1.1 via os.environ
import os
os.environ["LDPLAYER_PATH"] = "path"
appattr = LDAppAttr()
1.2 via direct initialization
appattr = LDAppAttr(path)
2. using console commands
console = LDConsole()
console.launch(name="test")
console.reboot(index=1)
console.quitall()
3. getting meta documents
app = LDApp()
# to get a list of documents in recommendedconfig
os.listdir(app.attr.recommendedConfigs)
# query
smpobj = app[Flags.RECOMMENDED, Flags.SMP, "some query"]
4. execute batch commands
from pyldplayer import LDConsole
console = LDBatchConsole()
console.add_interval() # this adds a sleep interval
console.launch([1,2,3])
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
File details
Details for the file pyldplayer-4.0.0.tar.gz
.
File metadata
- Download URL: pyldplayer-4.0.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50aaf2b0c98f00f8c668ceee582d4831ee10d172cdf35401dd08b94627d77e43 |
|
MD5 | 478162b3ffdc21f5e0a8f4f4cfbf9103 |
|
BLAKE2b-256 | da40b967c979802a73783e0992a3b173a419ae2bfbce543c7c1969d381269101 |
File details
Details for the file pyldplayer-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyldplayer-4.0.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc74c535e608dd6d1b8c472aebb7ca7d9a0d89e7fd6a069057266608c992067 |
|
MD5 | 983a00c080a224700a2ec3b536cc4716 |
|
BLAKE2b-256 | 8debf329e865a08c3a0ae82d3f1ed4b73ed022ec7fce3e589c25c105bd1f79ac |