Python API to interact with BeamNG.research.
Project description
Python API for BeamNG.research.
Installation
This API requires a copy of BeamNG.research, which is available for download here:
Once obtained, make sure to add the BeamNG.research binaries to your PATH such that BeamNG.research.x64 is callable from command line.
With that done, issue the following to install this library
pip install beamngpy
It’s recommended to do this inside a VirtualEnv.
Usage
After installaton, the package can be imported with:
import beamngpy
The main class that exposes the API is BeamNGPy which can be instantiated with:
bpy = beamngpy.BeamNGPy('localhost', 64256)
Where host and port are your choice, of course. More details on the methods of this class can be found in the API reference.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.