py-raildriver
Python interface to Train Simulator 2016. The aim of this project is to ease communication with raildriver.dll provided with Train Simulator.
py-raildriver’s only external dependency is six which should make this project compatible with both Python 2 and 3.
Installation
pip install py-raildriver
Documentation
See raildriver.RailDriver docstrings.
Usage example
Start your Railworks.exe, get running, pause and try this in your Python console.
>>> import raildriver
>>> rd = raildriver.RailDriver()
>>> rd.set_rail_driver_connected(True) # start data exchange
>>> assert 'SpeedometerMPH' in dict(rd.get_controller_list()).values(), 'SpeedometerMPH is not available on this loco'
>>> rd.get_current_controller_value('SpeedometerMPH')
50.004728991072624922
Bugs & Contributing
Please use Github to report bugs and feature requests: http://github.com/centralniak/py-raildriver
Code contributions are of course more than welcome. Please remember about unit tests or your code might not be accepted. You can run the test suite with::
python setup.py test
- author:
Piotr Kilczuk
- date:
2015/11/14
Metadata
Release files for py-raildriver 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-raildriver-1.1.7.zip | 9.5 kB | Without provenance | Details for py-raildriver-1.1.7.zip |
Release files / py-raildriver-1.1.7.zip
| Download URL | py-raildriver-1.1.7.zip |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7edb9f7c9e78f826ba71ce3f9e32dc847bd0ccbc7ea576e9b48156d37b85505f
|
|
BLAKE2b-256 checksum How to use checksums |
a0df5e23aab898e45537f1778b5abf72c6f2d4d959c98410dbb6a7acc38ffd6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for py-raildriver 1.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.