Re: [Hamlib-developer] Python API
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: George B. <geo...@gm...> - 2025-03-31 08:44:32
|
What you are looking for is the Python binding for Hamlib. On Linux it's usually a separate package, installed along with the main library. Example code is available in the source tree, or at https://github.com/Hamlib/Hamlib/blob/master/bindings/py3test.py Creating the Python bindings is a build-time option - I don't know if it is available in the stock packages. If you build Hamlib yourself, it is pretty simple to add it. Using rigctl or rigctld is an option, but that means re-inventing a lot of code. On 3/29/25 4:06 AM, Stephen Pattinson via Hamlib-developer wrote: > Hi, > I have written a Python (3.12.3) to talk to my IC7300 via Hamlib > (V4.6.2) in a Windows 10 environment, but I'm just issuing "rigctl" > commands and capturing the response. This works fine, but it's rather > crude. > Of course I would like to use the API which I believe is available, > but I cannot find how to download the necessary additional software or > library, or find the documentation for the Python API. > I have looked at > "https://hamlib.sourceforge.net/manuals/4.3/index.html", but this > seems exclusively C > Ironically, the most pertinent info I retrieved from a search is from > the Google AI (Sigh!) which suggests I need "hamlib-python", but I > can't find where the AI has scooped up this information. > If anybody can point me at installation instructions and documentation > for the API, I would be grateful. > Thanks/73 > Steve VK3SPX > > > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer |