Skip to main content

ld-ipc.py

Python SDK for LDPlayer IPC.

GitHub Actions Workflow Status Python PyPI version Coverage Status License

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)

Source distribution for ld-ipc.py 0.0.2
File Size Uploaded
ld_ipc_py-0.0.2.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ld-ipc.py 0.0.2
File Interpreter ABI Platform
ld_ipc_py-0.0.2-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page