Skip to content

Python ctypes bindings for libfap, the C port of the HAM::APRS::FAP Finnish APRS Parser

Notifications You must be signed in to change notification settings

kd7lxl/python-libfap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-libfap

Python ctypes bindings for libfap, the C port of the HAM::APRS::FAP Finnish APRS Parser

libfap version 1.5 must be installed. See http://pakettiradio.net/libfap/ for more information and documentation on the libfap APRS parser.

See example.py for example usage.

Settings

Before running example.py, you will need to configure your APRS login information in settings.py.

APRS_SERVER_HOST = 'rotate.aprs2.net'
APRS_SERVER_PORT = 14580
APRS_USER = ''
APRS_PASSCODE = ''

Compatibility

Compatible with libfap 1.5.

Operating Systems:

  • Linux
  • Mac OS X

libfap.py currently only looks for the libfap library with Linux and Mac OS X naming schemes. Windows may be able to find the library, but this is completely untested (if you have Windows available, it won't hurt to try).

try:
    # Try loading linux library
    libfap = cdll.LoadLibrary('libfap.so')
except OSError:
    try:
        # Try loading Mac OS X library
        libfap = cdll.LoadLibrary('libfap.dylib')
    except OSError:
        try:
            # This might find the dll for Windows, but it has not been tested
            libfap = cdll.LoadLibrary('libfap')
        except OSError:
            raise OSError, 'Could not find libfap.'

About

Python ctypes bindings for libfap, the C port of the HAM::APRS::FAP Finnish APRS Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages