Skip to main content

Client wrapper for FSUIPC

Project description

fsuipc

This project provides a simple Python client class wrapper around the FSUIPC tool, which allows third-party programs to interact with the "inner workings" of popular flight simulator software.

Fsuipc is built on top of (and includes) pyuipc, by István Váradi (ivaradi@varadiistvan.hu).

Installation

The easiest way to install this package is using pip:

pip install fsuipc

Note that fsuipc only supports Windows platforms.

Basic Usage

from fsuipc import FSUIPC


with FSUIPC() as fsuipc:
    prepared = fsuipc.prepare_data([
        (0x560, "l"),
        (0x568, "l"),
        (0x570, "l")
    ], True)

    while True:
        latitude, longitude, altitude = prepared.read()

        print(f"Latitude: {latitude}")
        print(f"Longitude: {longitude}")
        print(f"Altitude: {altitude}")

        input("Press ENTER to read again")

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

fsuipc-1.0.1.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distributions

fsuipc-1.0.1-cp38-cp38-win32.whl (18.8 kB view hashes)

Uploaded CPython 3.8 Windows x86

fsuipc-1.0.1-cp37-cp37m-win32.whl (18.7 kB view hashes)

Uploaded CPython 3.7m Windows x86

fsuipc-1.0.1-cp36-cp36m-win32.whl (18.7 kB view hashes)

Uploaded CPython 3.6m Windows x86

fsuipc-1.0.1-cp35-cp35m-win32.whl (18.7 kB view hashes)

Uploaded CPython 3.5m Windows x86

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