This release is a pre-release and may not be stable for production use.
DSInterface
A tiny python port of WPILib's driverstation class
Installation
DSInterface can be installed from pip using the command:
python3 -m pip install DSInterface
Next, import it in your project:
import DSInterface as DSI
Usage
In order to acces any data from FMS or the DriverStation, the DriverStation class must be initalized.
ds = DSI.DriverStation()
Pulling data from FMS
These are the avalible methods for DriverStation:
| Method | What it Does |
|---|---|
getAlliance() |
Returns a DSI.alliances enum to represent the alliance |
getStation() |
Returns an int from 1 to 3 that matches with your assigned station for the following match |
getMatchType() |
Returns an int that represents the match type |
getFMSControlData() |
Returns the raw FMS control data |
getReplayNumber() |
Returns the replay number |
getMatchNumber() |
Returns the match number |
getEventName() |
Returns the event name as a string |
getGSM() |
Returns the game specific message as an uppercase string |
Metadata
Release files for DSInterface 0.1rc3
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 |
|---|---|---|---|---|
| DSInterface-0.1rc3.tar.gz | 2.0 kB | Without provenance | Details for DSInterface-0.1rc3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| DSInterface-0.1rc3-py3-none-any.whl | Python 3 | none | any | Details for DSInterface-0.1rc3-py3-none-any.whl |
Total release size: 4.4 kB
Release files / DSInterface-0.1rc3.tar.gz
| Download URL | DSInterface-0.1rc3.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c94d171858355eb4b22f09cfcc8491e7f9eb4675f4910b2ca7e6fcb033b78f5
|
|
BLAKE2b-256 checksum How to use checksums |
9241e045278156a94ad79eaccb121552265058c832406ce6c4303bd5bdd938a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4
|
Release files / DSInterface-0.1rc3-py3-none-any.whl
| Download URL | DSInterface-0.1rc3-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0d6b6f17e22a757334648780352d24b2a3e1f79f46aeb3d8bb8cf0a05cf3307
|
|
BLAKE2b-256 checksum How to use checksums |
4e062321a41708a8d9fbba3fc03cc3f1cf7750d6b07f892c2ad3b3c7b96670fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4
|
Security for DSInterface 0.1rc3
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.