API
Applications
Utilities
API
Handbook
GitHub
Home
Loading...
Searching...
No Matches
app.py
Go to the documentation of this file.
1
import
sys
2
import
logging
3
import
xconf
4
from
magaox.indi.device
import
XDevice, BaseConfig
5
6
log =
logging.getLogger
(__name__)
7
8
@xconf.config
9
class
ExampleConfig
(BaseConfig):
10
"""Example Python INDI device for MagAO-X
11
12
Write your command-line help here, and it will be displayed when
13
someone runs `pythonIndiExample -h` in the terminal (along with
14
a summary of available options)
15
"""
16
configurable_doodad_1 : str =
xconf.field
(default=
"abc"
, help=
"Configurable doodad 1"
)
17
18
class
pythonIndiExample
(XDevice):
19
config : ExampleConfig
20
21
def
loop
(self):
22
log.info
(
"Looping"
)
23
24
# Used to make the pyproject.toml just a little simpler,
25
# with fewer repetitions of the app name:
26
main =
pythonIndiExample.console_app
pythonIndiExample.app.ExampleConfig
Definition
app.py:9
pythonIndiExample.app.pythonIndiExample
Definition
app.py:18
pythonIndiExample.app.pythonIndiExample.loop
loop(self)
Definition
app.py:21
pythonIndiExample.app.log
log
Definition
app.py:6
apps
pythonIndiExample
xapp
pythonIndiExample
app.py
Generated by
1.9.8