Skip to main content

Python Client for the Telescope Control System

Project description

TCS Client

Library to handle TCS (Telescope Control System) commands and work as client.

This library implements a TCP/IP socket following the SCLN protocol, this is 4 bytes to define the message length followed by the message itself using a big-endian and ASCII coding.

It will triggers a TCSError exception on failure, otherwise each command will return a dictionary with two keys, raw_response and response.

{
  raw_response: "<COMMAND RESPONSE>",
  response: [],
  key1: "value1",
  key2: "value2"
}
  • raw_response value is a string with the TCS response.
  • response value is a list of all single words received in the TCS response.
  • All other strings which match the format key=value are splitted and appended to the response dictionary, as shown for key1 and key2, if more than 1 key is received, the next keys will be named key[i] with i an increasing index.

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

tcs_client-1.0.1.tar.gz (13.1 kB view details)

Uploaded Source

File details

Details for the file tcs_client-1.0.1.tar.gz.

File metadata

  • Download URL: tcs_client-1.0.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for tcs_client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c3568addbaf95afc9dcdb2460990ea2481d666fd20e52a53bb8b4ad2a2045cd5
MD5 c1f463dc7416186e1932826db392e9a4
BLAKE2b-256 1d18cb13e7d72e57490c87d3637a2c4e9cf113ff341d0f8714449faf0c0334d6

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