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, GuiderException

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 GuiderException as ex:
        print(f"Guider Error: {ex}")

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.1.0.tar.gz (5.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.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for phd2client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6da46ad6725892c6782c94d73fdd823e7b4d632073b572fdd2ed54f5f911abdf
MD5 c60f527bfcefdd00a05c2f1b9a4cb08b
BLAKE2b-256 94d0ba6c3886add6d7deabc1f264b2dae6ffbf09155580fe18b97f0248190561

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for phd2client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 230c3593cbc604d4e1393918ae0dba3dbcdc8a7311a6dbad5bd0cc8a56bb0f54
MD5 cc4621a1066da91250906b9f04b3f56f
BLAKE2b-256 a1315482d684b4c8a3c83f5ec33072fdf5dbff80ac7592e0d63d07c601349cbf

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