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

Uploaded Source

File details

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

File metadata

  • Download URL: tcs_client-1.0.0.tar.gz
  • Upload date:
  • Size: 12.7 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.0.tar.gz
Algorithm Hash digest
SHA256 c4e5e8acd20c75bd86f62f21c10568195c2ea78f86eb9be8e863a57e7b1e0121
MD5 e74d67d689c4328dbf38227a61149bcd
BLAKE2b-256 1f7a53c5f2be9258a5fdd8af8247e193d2eb9417effd1461f0f00cce37e85108

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