Skip to main content

A terminal client which can be used to control remote instruments using the INDI protocol.

Project description

indipyterm

You may have Python programs implementing some form of data collection or control and wish to remotely operate such an instrument.

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.

This indipyterm package provides a terminal client, which connects to the port, allowing you to view and control your instrument from a terminal session.

It can be installed from Pypi with:

pip install indipyterm

or if you use uv, it can be loaded and run with:

uvx indipyterm

indipydriver and indipyterm communicate with the INDI protocol.

INDI - Instrument Neutral Distributed Interface.

See https://en.wikipedia.org/wiki/Instrument_Neutral_Distributed_Interface

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.

The client can be run from a virtual environment with

indipyterm [options]

or with

python3 -m indipyterm [options]

The package help is:

usage: indipyterm [options]

Terminal client to communicate to an INDI service.

options:
  -h, --help               show this help message and exit
  --port PORT              Port of the INDI server (default 7624).
  --host HOST              Hostname/IP of the INDI server (default localhost).
  --blobfolder BLOBFOLDER  Optional folder where BLOB's will be saved.

  --version    show program's version number and exit

A typical session would look like:

Terminal screenshot

and showing one device:

Terminal screenshot

The package can be installed from:

https://pypi.org/project/indipyterm

If installed from Pypi, then dependencies will automatically be pulled and installed, these are:

indipyclient - which generates and parses the INDI protocol.

textual - a library used to generate terminal interfaces.

Plus other packages which textual calls upon.

If indipyterm is imported, rather than run as shown above, then only two items are available:

indipyterm.version

indipyterm.IPyTerm

To run IPyTerm:

app = IPyTerm(host="localhost", port=7624, blobfolder=None)
app.run()

The app.run() call will block, and the terminal client will run.

The indipydriver package which can be used to create instrument control, and serve the INDI protocol is available at:

https://pypi.org/project/indipydriver

https://github.com/bernie-skipole/indipydriver

https://indipydriver.readthedocs.io

With example driver scripts at:

https://github.com/bernie-skipole/inditest

The indipyclient package contains classes which may be useful if you want to create your own client or client script:

https://pypi.org/project/indipyclient

https://github.com/bernie-skipole/indipyclient

https://indipyclient.readthedocs.io

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

indipyterm-0.1.2.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

indipyterm-0.1.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file indipyterm-0.1.2.tar.gz.

File metadata

  • Download URL: indipyterm-0.1.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for indipyterm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b675df940bd5f052b115f6922f330a6a695280a4cd9e41fdeffc40fbb48529f8
MD5 c32e9a9d5d457aae574d178361f93b6f
BLAKE2b-256 4fbbd0bcaf7d46b9685948c348017b1f4e1e70428147b2c77f67bd6d960f2971

See more details on using hashes here.

File details

Details for the file indipyterm-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: indipyterm-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for indipyterm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a4f1a9fd400d02f94dd296600c1529255cd35fb98492c0ea954aedddd3777e
MD5 e73331448632ad8e6fc7e1fb14598b9f
BLAKE2b-256 e4e41369b06545032e157942a031679d493f1c9c443956a9f5abd8d8577273de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page