Skip to main content

Python interface to Train Simulator 2016

Project description

https://ci.appveyor.com/api/projects/status/1037swfb2ig31tuh/branch/master?svg=true

Python interface to Train Simulator 2016. See raildriver.RailDriver docstrings for usage.

Example

Start your Railworks.exe, get running, pause and try this in your Python console.

>>> import raildriver
>>> rd = raildriver.RailDriver()
>>> assert 'SpeedometerMPH' in dict(rd.get_controller_list()).values(), 'SpeedometerMPH is not available on this loco'
>>> rd.get_current_controller_value('SpeedometerMPH')
50.004728991072624922

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

py-raildriver-1.0.1.zip (6.3 kB view hashes)

Uploaded Source

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