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.1.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.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file ld_ipc_py-0.0.1.tar.gz.

File metadata

  • Download URL: ld_ipc_py-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 452b2093e1b8174ba6b472481cbc1f469d418a4e4e62bfe2e0f4e46dfb10cd5d
MD5 f7b75aa397a1b392896c97e9cd0e6f6b
BLAKE2b-256 689234f5ae7d902e1192b57a28821ad7f6c3b8c702549d802296329e02a67877

See more details on using hashes here.

Provenance

The following attestation bundles were made for ld_ipc_py-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: ld_ipc_py-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d37288966d88240a8499e443d04f9a97c3a439360645d80f449bebfa8944d38
MD5 8d38b9c3e2ced37ee0f4a3024611d586
BLAKE2b-256 9055362f5e387d1b3786b8e0d63f9d67576aa43d33bdad91c5acea154400e7ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for ld_ipc_py-0.0.1-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