A library for controlling Fldigi via xmlrpc
Project description
PyFLDM
Python Fast Light Digital Modem
A library to be used for interacting with and controlling the Fldigi application.
Can be used to control the application directly via python library, such as to start, stop, and monitor the runnin status. But the primary usage is in serving as an api to Fldigi via xmlrpc
Example uses:
- Controlling the Application (start, stop, status)
>>> import pyfldm
>>> app = pyfldm.AppMonitor()
>>> app.start()
>>> # wait a few seconds for Fldigi to start up
>>> app.is_running() # checks that Fldigi is a currently running process
True
>>> app.is_functional() # verifies that the xmlrpc interface is responsive
True
>>> result = app.stop() # asks fldigi to gracefully shut down, returns a 0 if successfully stopped, 1 if not
>>> if not result:
... app.kill() # forcibly kills the process
>>> app.is_running()
False
- Using the XMLRPC API
# * assuming that Fldigi is already running
>>> import pyfldm
>>> client = pyfldm.Client()
>>> client.fldigi.version()
4.1.26
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
pyfldm-0.0.1.tar.gz
(19.9 kB
view hashes)
Built Distribution
pyfldm-0.0.1-py3-none-any.whl
(30.9 kB
view hashes)