Skip to main content

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:

  1. 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

  1. 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)

Uploaded Source

Built Distribution

pyfldm-0.0.1-py3-none-any.whl (30.9 kB view hashes)

Uploaded Python 3

Supported by

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