J. Lewis Muir > Software > Pycatools

Pycatools (Python CA Tools) is a Python library for performing the operations supported by the EPICS Base CA tools using only the CA tools binaries (i.e. caget, caput, camonitor, and cainfo).

The library only invokes the CA tools as subprocesses. So, as long as the CA tools can be found on the command search path, and as long as the CLI interface and standard output and standard error formats of the CA tools do not change, this library will work with whatever CA tools are installed on the machine. Gone is the need to compile this library to work with the available EPICS Base libraries, and gone is the need to recompile this library if the EPICS Base libraries are updated. Actually, gone is the need to compile and install this library at all; all you need is the pycatools.py file, Python, and the EPICS CA tools binaries.

Pycatools provides the following:

Pycatools does not yet support the following:

Example

>>> from pycatools import Caput
>>> from pycatools import Caget
>>> result = Caput("ioc23:light", "1").run()
>>> result.getValue()
1
>>> result = Caget("ioc23:light").run()
>>> result.getValue()
1
>>> result = Caput("ioc23:light", "0").run()
>>> result.getValue()
0
>>> result = Caget("ioc23:light").run()
>>> result.getValue()
0

Requirements

License

Download