Skip to main content

Inhumate RTI Client for Python

This is the Python client for the Inhumate RTI (RunTime Infrastructure), part of the Inhumate Suite.

See the Inhumate Suite documentation for more in-depth topics and an overview of the software suite.

Installing

pip install inhumate-rti

Quick Start

import inhumate_rti as RTI

rti = RTI.Client(application="Python RTI App")
rti.wait_until_connected()

def on_connect():
    print("Connected")
rti.on("connect", on_connect)

def on_hello(content): 
    print(f"Received: {content}")
rti.subscribe_text("hello", on_hello)

rti.publish_text("hello", "Hello World!")

Note that the Python client is multi-threaded by default. subscribe callbacks are called from a separate receive thread. Depending on your use case, you might want to use the single-threaded pattern and main_loop constructor argument:

import inhumate_rti as RTI

def main_loop():
    print("." if rti.connected else "x", end="", flush=True)
    if rti and rti.connected: rti.publish_text("foo", "bar")

# connect after initializing, otherwise 'rti' will be undefined in the main loop
rti = RTI.Client(application="Python RTI App", main_loop=main_loop, main_loop_idle_time=1.0)
rti.connect() # blocks further execution

For a more complete usage example, see usage_example.py and usage_example_main_loop.py.

Running tests

Clone the project from GitHub, and in the python folder:

python -m virtualenv .venv
. .venv/bin/activate
pip install -r inhumate_rti/requirements.txt 
pip install -r test/requirements.txt
pytest

Feedback & Contributing

Feedback and contributions of any kind are welcome.

Metadata

Release files for inhumate-rti 3.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inhumate-rti 3.0.8
File Size Uploaded Provenance Actions
inhumate_rti-3.0.8.tar.gz 31.3 kB Without provenance Details for inhumate_rti-3.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inhumate-rti 3.0.8
File Interpreter ABI Platform Actions
inhumate_rti-3.0.8-py3-none-any.whl Python 3 none any Details for inhumate_rti-3.0.8-py3-none-any.whl

Total release size: 78.9 kB

Release files / inhumate_rti-3.0.8.tar.gz

Download URL inhumate_rti-3.0.8.tar.gz
Size 31.3 kB
Tags Source
SHA-256 checksum
How to use checksums
65807e525b1827af5c5f9081a8d204f9593a63881dcaee79ec3d6bc61cd045b0
BLAKE2b-256 checksum
How to use checksums
c8cb7611d29f0c9fdc7aa072695e87a6adbe0b06b3c0a73a2b888ef5038e4173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / inhumate_rti-3.0.8-py3-none-any.whl

Download URL inhumate_rti-3.0.8-py3-none-any.whl
Size 47.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11ee20c3f786d02d932becb98b806467253b59add928a721d8a4746e88ad438f
BLAKE2b-256 checksum
How to use checksums
c2907a2095c42a7c96f7181c05aa5ad392b460f81c95a9e1600b036265d57a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for inhumate-rti 3.0.8

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.

Release history Release notifications | RSS feed

This release

3.0.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page