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_responsevalue is a string with the TCS response.responsevalue is a list of all single words received in the TCS response.- All other strings which match the format
key=valueare splitted and appended to the response dictionary, as shown forkey1andkey2, if more than 1 key is received, the next keys will be namedkey[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)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3568addbaf95afc9dcdb2460990ea2481d666fd20e52a53bb8b4ad2a2045cd5
|
|
| MD5 |
c1f463dc7416186e1932826db392e9a4
|
|
| BLAKE2b-256 |
1d18cb13e7d72e57490c87d3637a2c4e9cf113ff341d0f8714449faf0c0334d6
|