A library for connecting to remote Robots running TritiumOS
Project description
tritium_remote
A library for interacting with Tritium systems. Hosted docs are here (require login).
- Connects to a running Tritium system by WebSocket
- Uses GraphQL to send commands and request data
Implemented in Rust with bindings to other languages:
This library is currently only published and tested on Linux. However the rust crate ought to work on other platforms.
This is only to be used on a trusted local network. The Tritium system will be accessed over LAN without encryption.
APIs
Sequence playback
- Start & stop sequence
Scripting
- Start & stop scripts
- Post messages to named channels to which scripts may subscribe
Generic Queries and Mutations
- Execute user-supplied GraphQL query or mutation documents
- Optional variables, supplied as JSON
- Any response is returned as a JSON encoded object
Running Examples
The Rust and Python examples use the TRITIUM_AUTH_TOKEN environment variable to get the JWT access token they need.
To generate an access token...
- Log into the Tritium cloud UI
- Connect to your locally-running system
- Go to the "Scripts" page
- Select the API Keys tab
- Click "CREATE AN API KEY"
$ export TRITIUM_AUTH_TOKEN="{paste token here}"
$ cargo run --example system_info
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file tritium_remote-1.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tritium_remote-1.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c86629dfa8ae32411fd767cb45914a52f5c892cb8e4240135d2064302021ce |
|
MD5 | 543917bd2bb5c46274ee3f34449f8d93 |
|
BLAKE2b-256 | f8ddc72a47a3d8b484afd315e666a3fab16652eb304e950636bc8b9a7610d9f0 |
File details
Details for the file tritium_remote-1.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tritium_remote-1.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7896fed5eddd5656271b49a418563b0341cf5e9f9f3e1f0f67223b2d80361de4 |
|
MD5 | a4ebd8a77397fb0f73a4d23cd36c6893 |
|
BLAKE2b-256 | 7db5c7451f9e92e383ee52c1d72e9bc9c776c2554876c1a0ad0787315abd89fc |
File details
Details for the file tritium_remote-1.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tritium_remote-1.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9af28ce454792568fc4733030b8be73a2a07499769907327805fae41784abff |
|
MD5 | 743e8dad433492a1d602754be57d1648 |
|
BLAKE2b-256 | cb52934aa5b7f19d57b02b68ba1cdf533b2e34c0281946fcd83bc309a6da35fc |
File details
Details for the file tritium_remote-1.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tritium_remote-1.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066b1654f4dbbed2c831701a0b2896e71b234ecfcb03849019c637d710dd22f4 |
|
MD5 | 98c3716927dc522d276963d88b82f56c |
|
BLAKE2b-256 | abb4df9533a0f3810af43db37da99840c6917cc4895fa8359d4a5eba51fd72b0 |
File details
Details for the file tritium_remote-1.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tritium_remote-1.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcc4439ef05483db12a451fd561cfd4db9225e8b8041589a9fa63c6f61f93b8 |
|
MD5 | 161070ddc5095252298b8de2ea625aff |
|
BLAKE2b-256 | 4fd755c71fa5740870ada049e73d8c3164b40db44cf745a31157422254d80993 |