Skip to main content

Python SDK for LDPlayer IPC.

Project description

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.

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

ld_ipc_py-0.0.2.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ld_ipc_py-0.0.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

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

Hashes for ld_ipc_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 58cd9418766acef8ffd4de2179392ae8e88bcbda20b2dfac0c1a7ca1a1f8b6b0
MD5 0dd9e32a5361487e5f35d77bee60f2d4
BLAKE2b-256 1f8a8ce971fa42a76fd6b59224f9fa05a6be9aa3aa71c2810945374abb4cd355

See more details on using hashes here.

Provenance

The following attestation bundles were made for ld_ipc_py-0.0.2.tar.gz:

Publisher: package.yml on EvATive7/ld-ipc.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ld_ipc_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2fa87e93c3304e4d9d466ba83d06933e71f7df8a22a2208a9f7ffe46be99bb0c
MD5 227b5de11d267b12ce5a52316bc7a33f
BLAKE2b-256 993711ba07a29e0d4a96a3e84be9af00650d74a6548979e29fc9b6b209094fd5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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