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.
Metadata
Release files for ld-ipc.py 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ld_ipc_py-0.0.2.tar.gz | 15.8 kB | With provenance | Details for ld_ipc_py-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ld_ipc_py-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for ld_ipc_py-0.0.2-py3-none-any.whl |
Total release size: 31.6 kB
Release files / ld_ipc_py-0.0.2.tar.gz
| Download URL | ld_ipc_py-0.0.2.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58cd9418766acef8ffd4de2179392ae8e88bcbda20b2dfac0c1a7ca1a1f8b6b0
|
|
BLAKE2b-256 checksum How to use checksums |
1f8a8ce971fa42a76fd6b59224f9fa05a6be9aa3aa71c2810945374abb4cd355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 5, 2025.
Transparency logRelease files / ld_ipc_py-0.0.2-py3-none-any.whl
| Download URL | ld_ipc_py-0.0.2-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fa87e93c3304e4d9d466ba83d06933e71f7df8a22a2208a9f7ffe46be99bb0c
|
|
BLAKE2b-256 checksum How to use checksums |
993711ba07a29e0d4a96a3e84be9af00650d74a6548979e29fc9b6b209094fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 5, 2025.
Transparency logSecurity for ld-ipc.py 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ld_ipc_py-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 5, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.