Skip to main content

DCS Bios Connector [Python Library]

This is a python library that allows you to listen to DCS Bios events. This can be imported into any python and used for projects.

This library uses DCS Bios Skunkworks

A helpful tool is DCS Bort to see button/switch names for each piece of data for a given aircraft. In the Usage section below, I am using the FLAPS_SW for the F/A-18_Hornet. Bort helps you see the name in DCS Bios for every piece of data, it also shows the values in realtime to help debug and see what data you are looking for.

Installation

pip install dcs-bios-connector

Usage

from dcs_bios_connector import DcsBiosConnector
bios = DcsBiosConnector()
bios.connect()

# ============= Example: Detect when flap switch changes and its new value =====================
def handle_flaps_change(value, controlInformation, dataInformation):
    print("Flaps have been changed to: ", value)

bios.on("FLAP_SW", handle_flaps_change)


# ============= Example: Callback method to run when flaps are set to 2 =====================
def handle_flaps_lowered():
    print("That flaps have been lowered! Yeah")

bios.on("FLAP_SW:0", handle_flaps_lowered)


# ================= Example: Setting flap switch to position 2 (Flaps to auto) ==========================
bios.send("FLAP_SW 2")

Metadata

Release files for dcs-bios-connector 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcs-bios-connector 1.4
File Size Uploaded
dcs_bios_connector-1.4.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for dcs-bios-connector 1.4
File Interpreter ABI Platform
dcs_bios_connector-1.4-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / dcs_bios_connector-1.4.tar.gz

Download URL dcs_bios_connector-1.4.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
be0646a3f72037990bdabbf9dd6dce140a9c89b6f7e659a60dfe8395a2a0c586
BLAKE2b-256 checksum
How to use checksums
6efb21145ad60714cb97dcc2cec03e4b24dd64b5e9e73e61c92c659c8316ec9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / dcs_bios_connector-1.4-py3-none-any.whl

Download URL dcs_bios_connector-1.4-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c0a1dab369a3b1ece528d1b699f3bc753ba583d91bd81435150c69f11a335543
BLAKE2b-256 checksum
How to use checksums
857d7551f64b0f5c87022750cd95c20a2ceb82305aa7cb9eaabb1ee2dd9b0718
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3

2 release files

1.1

2 release files

1.0

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

1 release file

0.1.9

2 release files

0.1.8

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page