.. py:currentmodule:: rticonnextdds_connector Getting Started =============== Installing RTI Connector for Python ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There are two ways to obtain *RTI Connector* for Python. You can install it with *pip*: .. code:: bash $ pip install rticonnextdds_connector And then run your *Connector* applications: .. code:: bash $ python my_connector_app.py You can also clone the repository and run the examples directly without installing *Connector*: .. code:: bash $ git clone --recursive https://github.com/rticommunity/rticonnextdds-connector-py.git In order to access the examples, clone the github repository. Running the examples ~~~~~~~~~~~~~~~~~~~~ The examples are in the `examples/python `__ directory of the *RTI Connector* for Python GitHub repository. In the simple example, ``writer.py`` periodically publishes data for a *Square* topic, and ``reader.py`` subscribes to the topic and prints all the data samples it receives. Run the reader as follows: .. code:: bash python examples/python/simple/reader.py In another shell, run the writer: .. code:: bash python examples/python/simple/writer.py This is what ``reader.py`` looks like: .. literalinclude:: ../examples/python/simple/reader.py :lines: 18- And this is ``writer.py``: .. literalinclude:: ../examples/python/simple/writer.py :lines: 18- You can run the reader and the writer in any order, and you can run multiple instances of each at the same time. You can also run any other *DDS* application that publishes or subscribes to the *Square* topic. For example, you can use `RTI Shapes Demo `__.