indipyterm 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- indipyterm-0.0.1/LICENSE +21 -0
- indipyterm-0.0.1/PKG-INFO +85 -0
- indipyterm-0.0.1/README.md +69 -0
- indipyterm-0.0.1/indipyterm/__init__.py +3 -0
- indipyterm-0.0.1/indipyterm/__main__.py +32 -0
- indipyterm-0.0.1/indipyterm/connections.py +660 -0
- indipyterm-0.0.1/indipyterm/devicesc.py +93 -0
- indipyterm-0.0.1/indipyterm/filechooser.py +89 -0
- indipyterm-0.0.1/indipyterm/grouppn.py +471 -0
- indipyterm-0.0.1/indipyterm/indipyterm.py +41 -0
- indipyterm-0.0.1/indipyterm/memberpn.py +598 -0
- indipyterm-0.0.1/indipyterm/startsc.py +227 -0
- indipyterm-0.0.1/pyproject.toml +21 -0
indipyterm-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Bernard Czenkusz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: indipyterm
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A terminal client which can be used to control remote instruments using the INDI protocol.
|
|
5
|
+
Keywords: indi,client,astronomy,instrument
|
|
6
|
+
Author-email: Bernard Czenkusz <bernie@skipole.co.uk>
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
|
|
12
|
+
Requires-Dist: indipyclient>=0.6.8
|
|
13
|
+
Requires-Dist: textual>=1.0.0
|
|
14
|
+
Project-URL: Source, https://github.com/bernie-skipole/indipyterm
|
|
15
|
+
|
|
16
|
+
# indipyterm
|
|
17
|
+
|
|
18
|
+
You may have Python programs implementing some form of data collection or control and wish to remotely operate such an instrument.
|
|
19
|
+
|
|
20
|
+
An associated package 'indipydriver' can be used to take your data, organise it into a data structure defined by the INDI protocol, and serve it on a port.
|
|
21
|
+
|
|
22
|
+
This indipyterm package provides a terminal client, which connects to the port, allowing you to view and control your instrument from a terminal session.
|
|
23
|
+
|
|
24
|
+
It can be installed from Pypi with:
|
|
25
|
+
|
|
26
|
+
pip install indipyterm
|
|
27
|
+
|
|
28
|
+
indipydriver and indipyterm communicate with the INDI protocol.
|
|
29
|
+
|
|
30
|
+
INDI - Instrument Neutral Distributed Interface.
|
|
31
|
+
|
|
32
|
+
See https://en.wikipedia.org/wiki/Instrument_Neutral_Distributed_Interface
|
|
33
|
+
|
|
34
|
+
The client can be run with
|
|
35
|
+
|
|
36
|
+
indipyterm [options]
|
|
37
|
+
|
|
38
|
+
or with
|
|
39
|
+
|
|
40
|
+
python3 -m indipyterm [options]
|
|
41
|
+
|
|
42
|
+
The package help is:
|
|
43
|
+
|
|
44
|
+
usage: indipyterm [options]
|
|
45
|
+
|
|
46
|
+
Terminal client to communicate to an INDI service.
|
|
47
|
+
|
|
48
|
+
options:
|
|
49
|
+
-h, --help show this help message and exit
|
|
50
|
+
--port PORT Port of the INDI server (default 7624).
|
|
51
|
+
--host HOST Hostname/IP of the INDI server (default localhost).
|
|
52
|
+
--version show program's version number and exit
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
A typical session would look like:
|
|
56
|
+
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
and showing one device:
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
The INDI protocol defines the format of the data sent, such as light, number, text, switch or BLOB (Binary Large Object). The client is general purpose, taking the format of switches, numbers etc., from the protocol.
|
|
65
|
+
|
|
66
|
+
The package can be installed from:
|
|
67
|
+
|
|
68
|
+
https://pypi.org/project/indipyterm
|
|
69
|
+
|
|
70
|
+
If installed from Pypi using pip, then dependencies will automatically be pulled and installed, these are:
|
|
71
|
+
|
|
72
|
+
indipyclient - which generates and parses the INDI protocol.
|
|
73
|
+
|
|
74
|
+
textual - a library used to generate terminal interfaces.
|
|
75
|
+
|
|
76
|
+
Plus other packages which textual calls upon.
|
|
77
|
+
|
|
78
|
+
The indipydriver package which can be used to create instrument control, and serve the INDI protocol is available at:
|
|
79
|
+
|
|
80
|
+
https://pypi.org/project/indipydriver
|
|
81
|
+
|
|
82
|
+
https://github.com/bernie-skipole/indipydriver
|
|
83
|
+
|
|
84
|
+
https://indipydriver.readthedocs.io
|
|
85
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# indipyterm
|
|
2
|
+
|
|
3
|
+
You may have Python programs implementing some form of data collection or control and wish to remotely operate such an instrument.
|
|
4
|
+
|
|
5
|
+
An associated package 'indipydriver' can be used to take your data, organise it into a data structure defined by the INDI protocol, and serve it on a port.
|
|
6
|
+
|
|
7
|
+
This indipyterm package provides a terminal client, which connects to the port, allowing you to view and control your instrument from a terminal session.
|
|
8
|
+
|
|
9
|
+
It can be installed from Pypi with:
|
|
10
|
+
|
|
11
|
+
pip install indipyterm
|
|
12
|
+
|
|
13
|
+
indipydriver and indipyterm communicate with the INDI protocol.
|
|
14
|
+
|
|
15
|
+
INDI - Instrument Neutral Distributed Interface.
|
|
16
|
+
|
|
17
|
+
See https://en.wikipedia.org/wiki/Instrument_Neutral_Distributed_Interface
|
|
18
|
+
|
|
19
|
+
The client can be run with
|
|
20
|
+
|
|
21
|
+
indipyterm [options]
|
|
22
|
+
|
|
23
|
+
or with
|
|
24
|
+
|
|
25
|
+
python3 -m indipyterm [options]
|
|
26
|
+
|
|
27
|
+
The package help is:
|
|
28
|
+
|
|
29
|
+
usage: indipyterm [options]
|
|
30
|
+
|
|
31
|
+
Terminal client to communicate to an INDI service.
|
|
32
|
+
|
|
33
|
+
options:
|
|
34
|
+
-h, --help show this help message and exit
|
|
35
|
+
--port PORT Port of the INDI server (default 7624).
|
|
36
|
+
--host HOST Hostname/IP of the INDI server (default localhost).
|
|
37
|
+
--version show program's version number and exit
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
A typical session would look like:
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
and showing one device:
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
The INDI protocol defines the format of the data sent, such as light, number, text, switch or BLOB (Binary Large Object). The client is general purpose, taking the format of switches, numbers etc., from the protocol.
|
|
50
|
+
|
|
51
|
+
The package can be installed from:
|
|
52
|
+
|
|
53
|
+
https://pypi.org/project/indipyterm
|
|
54
|
+
|
|
55
|
+
If installed from Pypi using pip, then dependencies will automatically be pulled and installed, these are:
|
|
56
|
+
|
|
57
|
+
indipyclient - which generates and parses the INDI protocol.
|
|
58
|
+
|
|
59
|
+
textual - a library used to generate terminal interfaces.
|
|
60
|
+
|
|
61
|
+
Plus other packages which textual calls upon.
|
|
62
|
+
|
|
63
|
+
The indipydriver package which can be used to create instrument control, and serve the INDI protocol is available at:
|
|
64
|
+
|
|
65
|
+
https://pypi.org/project/indipydriver
|
|
66
|
+
|
|
67
|
+
https://github.com/bernie-skipole/indipydriver
|
|
68
|
+
|
|
69
|
+
https://indipydriver.readthedocs.io
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import sys, argparse
|
|
4
|
+
|
|
5
|
+
from . import version
|
|
6
|
+
from .indipyterm import IPyTerm
|
|
7
|
+
from .connections import make_connection
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def main():
|
|
12
|
+
"""The commandline entry point to run the terminal client."""
|
|
13
|
+
|
|
14
|
+
parser = argparse.ArgumentParser(usage="indipyterm [options]",
|
|
15
|
+
description="Terminal client to communicate to an INDI service.")
|
|
16
|
+
parser.add_argument("--port", type=int, default=7624, help="Port of the INDI server (default 7624).")
|
|
17
|
+
parser.add_argument("--host", default="localhost", help="Hostname/IP of the INDI server (default localhost).")
|
|
18
|
+
parser.add_argument("--version", action="version", version=version)
|
|
19
|
+
args = parser.parse_args()
|
|
20
|
+
|
|
21
|
+
# Create the initial server connection
|
|
22
|
+
make_connection(host=args.host, port=args.port)
|
|
23
|
+
|
|
24
|
+
# run the IPyTerm app
|
|
25
|
+
app = IPyTerm()
|
|
26
|
+
app.run()
|
|
27
|
+
|
|
28
|
+
return 0
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if __name__ == "__main__":
|
|
32
|
+
sys.exit(main())
|