Python SDK for LDPlayer IPC.
Project description
Usage
Install the package using pip: pip install ld-ipc.py
from pathlib import Path
from PIL import Image
from ldipc import LDPlayer
# Set the path and index of LDPlayer
ldplayer_path = Path(r"C:\leidian\LDPlayer9") # Replace with your LDPlayer path
player_index = 0 # Replace with the index of players you want to capture
try:
# Create an LDPlayer instance
ld_player = LDPlayer(ldplayer_path, player_index)
# capture screenshots
screenshot_array = ld_player.capture()
# Convert numpy array to PIL image and save
screenshot_image = Image.fromarray(screenshot_array)
screenshot_image.save("screenshot.png")
print("Screenshot has been saved as screenshot.png")
except Exception as e:
print(f"Error capturing screenshot: {e}")
Platform
Only Windows is supported.
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 ld_ipc_py-0.0.2.tar.gz.
File metadata
- Download URL: ld_ipc_py-0.0.2.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58cd9418766acef8ffd4de2179392ae8e88bcbda20b2dfac0c1a7ca1a1f8b6b0
|
|
| MD5 |
0dd9e32a5361487e5f35d77bee60f2d4
|
|
| BLAKE2b-256 |
1f8a8ce971fa42a76fd6b59224f9fa05a6be9aa3aa71c2810945374abb4cd355
|
Provenance
The following attestation bundles were made for ld_ipc_py-0.0.2.tar.gz:
Publisher:
package.yml on EvATive7/ld-ipc.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ld_ipc_py-0.0.2.tar.gz -
Subject digest:
58cd9418766acef8ffd4de2179392ae8e88bcbda20b2dfac0c1a7ca1a1f8b6b0 - Sigstore transparency entry: 192832600
- Sigstore integration time:
-
Permalink:
EvATive7/ld-ipc.py@240ed059212600280c06046a2f917109d9c7f492 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/EvATive7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yml@240ed059212600280c06046a2f917109d9c7f492 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ld_ipc_py-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ld_ipc_py-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa87e93c3304e4d9d466ba83d06933e71f7df8a22a2208a9f7ffe46be99bb0c
|
|
| MD5 |
227b5de11d267b12ce5a52316bc7a33f
|
|
| BLAKE2b-256 |
993711ba07a29e0d4a96a3e84be9af00650d74a6548979e29fc9b6b209094fd5
|
Provenance
The following attestation bundles were made for ld_ipc_py-0.0.2-py3-none-any.whl:
Publisher:
package.yml on EvATive7/ld-ipc.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ld_ipc_py-0.0.2-py3-none-any.whl -
Subject digest:
2fa87e93c3304e4d9d466ba83d06933e71f7df8a22a2208a9f7ffe46be99bb0c - Sigstore transparency entry: 192832601
- Sigstore integration time:
-
Permalink:
EvATive7/ld-ipc.py@240ed059212600280c06046a2f917109d9c7f492 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/EvATive7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yml@240ed059212600280c06046a2f917109d9c7f492 -
Trigger Event:
push
-
Statement type: