Skip to main content

A full Python binding for RTI Connext

Project description

RTI® Connext® is a connectivity framework for building distributed applications with requirements for high performance and scalability.

The RTI Connext Python API provides access to most Connext features from Python.

Documentation

Hello World Example

The following is the basic code to publish and subscribe to a topic defined by a simple data type.

Define your types:

# hello.py

import rti.types as idl

@idl.struct
class HelloWorld:
    message: str = ""

Create a DataWriter to publish the HelloWorld Topic:

# hello_publisher.py

import time
import rti.connextdds as dds
from hello import HelloWorld

participant = dds.DomainParticipant(domain_id=0)
topic = dds.Topic(participant, 'HelloWorld Topic', HelloWorld)
writer = dds.DataWriter(participant.implicit_publisher, topic)

for i in range(10):
    writer.write(HelloWorld(message=f'Hello World! #{i}'))
    time.sleep(1)

Create a DataReader to subscribe to the HelloWorld Topic:

# hello_subscriber.py

import rti.connextdds as dds
import rti.asyncio
from hello import HelloWorld

participant = dds.DomainParticipant(domain_id=0)
topic = dds.Topic(participant, 'HelloWorld Topic', HelloWorld)
reader = dds.DataReader(participant.implicit_subscriber, topic)

async def print_data():
    async for data in reader.take_data_async():
        print(f"Received: {data}")

rti.asyncio.run(print_data())

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rti.connext-7.3.0-cp312-cp312-win_amd64.whl (8.3 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

rti.connext-7.3.0-cp312-cp312-win32.whl (6.7 MB view hashes)

Uploaded CPython 3.12 Windows x86

rti.connext-7.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

rti.connext-7.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

rti.connext-7.3.0-cp312-cp312-macosx_11_0_arm64.whl (9.2 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

rti.connext-7.3.0-cp312-cp312-macosx_10_9_x86_64.whl (10.8 MB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

rti.connext-7.3.0-cp311-cp311-win_amd64.whl (8.3 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

rti.connext-7.3.0-cp311-cp311-win32.whl (6.7 MB view hashes)

Uploaded CPython 3.11 Windows x86

rti.connext-7.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

rti.connext-7.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

rti.connext-7.3.0-cp311-cp311-macosx_11_0_arm64.whl (8.3 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

rti.connext-7.3.0-cp311-cp311-macosx_10_9_x86_64.whl (9.8 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

rti.connext-7.3.0-cp310-cp310-win_amd64.whl (8.3 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

rti.connext-7.3.0-cp310-cp310-win32.whl (6.7 MB view hashes)

Uploaded CPython 3.10 Windows x86

rti.connext-7.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

rti.connext-7.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

rti.connext-7.3.0-cp310-cp310-macosx_11_0_arm64.whl (8.3 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

rti.connext-7.3.0-cp310-cp310-macosx_10_9_x86_64.whl (9.8 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

rti.connext-7.3.0-cp39-cp39-win_amd64.whl (8.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

rti.connext-7.3.0-cp39-cp39-win32.whl (6.7 MB view hashes)

Uploaded CPython 3.9 Windows x86

rti.connext-7.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

rti.connext-7.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

rti.connext-7.3.0-cp39-cp39-macosx_11_0_arm64.whl (8.3 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

rti.connext-7.3.0-cp39-cp39-macosx_10_9_x86_64.whl (9.8 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

rti.connext-7.3.0-cp38-cp38-win_amd64.whl (8.3 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

rti.connext-7.3.0-cp38-cp38-win32.whl (6.7 MB view hashes)

Uploaded CPython 3.8 Windows x86

rti.connext-7.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

rti.connext-7.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

rti.connext-7.3.0-cp38-cp38-macosx_11_0_arm64.whl (8.3 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

rti.connext-7.3.0-cp38-cp38-macosx_10_9_x86_64.whl (9.8 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

rti.connext-7.3.0-cp37-cp37m-win_amd64.whl (8.2 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

rti.connext-7.3.0-cp37-cp37m-win32.whl (6.7 MB view hashes)

Uploaded CPython 3.7m Windows x86

rti.connext-7.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

rti.connext-7.3.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

rti.connext-7.3.0-cp37-cp37m-macosx_10_9_x86_64.whl (9.8 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

rti.connext-7.3.0-cp36-cp36m-win_amd64.whl (8.2 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

rti.connext-7.3.0-cp36-cp36m-win32.whl (6.7 MB view hashes)

Uploaded CPython 3.6m Windows x86

rti.connext-7.3.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.5 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

rti.connext-7.3.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.4 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

rti.connext-7.3.0-cp36-cp36m-macosx_10_9_x86_64.whl (9.8 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

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