Skip to main content

PHD2 event server API client

Project description

phd2client

A python binding for the PHD2 event server API.

Installation

pip install phd2client

Usage

from phd2client.guider import Guider, GuiderError

with Guider("localhost", connect=True) as guider:
    try:
        # connect equipment in profile "Simulator"
        guider.ConnectEquipment("Simulator")

        # start guiding with settle tolerance of 2.0 pixels, 10 second settle time, 100-second timeout
        guider.Guide(2.0, 10.0, 100.0)
    except GuiderError as e:
        print(f"Guider Error: {e}")

See phd2client.py for a more complete example.

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

phd2client-0.2.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

phd2client-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file phd2client-0.2.0.tar.gz.

File metadata

  • Download URL: phd2client-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for phd2client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 94988d3e69e28c5c6096cde3b808597b8fe8a1304f63e6093372db2539a62e6d
MD5 926be75f71cf21f0eaf97a08b09ed3e4
BLAKE2b-256 aca0e8fcd0e787e6e04dfa58a398f06886e61fbf67653ccadd11573c8ad71089

See more details on using hashes here.

File details

Details for the file phd2client-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for phd2client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cde393648da490770c414187445373c9376afaaee82570fe6f6c24cb6155e67
MD5 3dd55c6920920a5f112cc45bdd3a0733
BLAKE2b-256 8406caa0a13e4d39ae5e2936781ef627d36ab70d30d739b4d00a354676beab3e

See more details on using hashes here.

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