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.2.tar.gz (13.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: tcs_client-1.0.2.tar.gz
  • Upload date:
  • Size: 13.4 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.2.tar.gz
Algorithm Hash digest
SHA256 320700f1749432bc511a4debff069e265a2f545ef58516a3bfe8a4057f3c0820
MD5 c9ffd1ad852c6b294404a837e58de0d3
BLAKE2b-256 45bec142a2343944420d849f5dfdc8c9b5ace0543a8f15f64c707fd2e08859d0

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