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.0.tar.gz
(12.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4e5e8acd20c75bd86f62f21c10568195c2ea78f86eb9be8e863a57e7b1e0121
|
|
| MD5 |
e74d67d689c4328dbf38227a61149bcd
|
|
| BLAKE2b-256 |
1f7a53c5f2be9258a5fdd8af8247e193d2eb9417effd1461f0f00cce37e85108
|