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

Uploaded Python 3

File details

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

File metadata

  • Download URL: phd2client-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 bfdeb3784b75b5e8d92bb235b67fd96e63793f0311c4480ef5a31d29eb76ffef
MD5 c6e05af2b9085703c224995b33bfe774
BLAKE2b-256 6b355d76c23f21614315c401afb19ced398d7090582fe6999a74aede77691cfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for phd2client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b818bbc3023dee9cea67c74610eeeae62677d420213926a5a8ad967fb14f8d1
MD5 88be323ab09b6bc2cad0a6cbb337440b
BLAKE2b-256 d28f5f75a9babdaae4b313120b8e88a215bf72de43017a1d93a19ddfbd15052b

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