# Fast-DDS-python
**Repository Path**: wanghuqiang_123/Fast-DDS-python
## Basic Information
- **Project Name**: Fast-DDS-python
- **Description**: No description available
- **Primary Language**: Python
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2023-12-20
- **Last Updated**: 2023-12-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Python binding for Fast DDS
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/eProsima/Fast-DDS-python/releases)
[](https://github.com/eProsima/Fast-DDS-python/issues)
[](https://github.com/eProsima/Fast-DDS-python/network/members)
[](https://github.com/eProsima/Fast-DDS-python/stargazers)
*eProsima Fast DDS Python* is a Python binding for the [*eProsima Fast DDS*](https://github.com/eProsima/Fast-DDS) C++ library.
This is a work in progress, but ultimately the goal is having the complete *Fast DDS* API available in Python.
Two packages are available in this repository: the proper Python binding, `fastdds_python`, and the examples, `fastdds_python_examples`.
## Installation guide
This tutorial shows how to build *Fast DDS Python* using [colcon](https://colcon.readthedocs.io), a command line tool to build sets of software packages.
To do so, `colcon` and `vcstool` need to be installed:
```bash
pip install -U colcon-common-extensions vcstool
```
### Dependencies
*Fast DDS Python* depends on [Fast DDS](https://github.com/eProsima/Fast-DDS) and [Fast CDR](https://github.com/eProsima/Fast-CDR).
For simplicity, this tutorial will build these dependencies alongside the binding itself.
More advanced users can build or link to this packages separately.
Install *Fast DDS* dependencies running:
```bash
sudo apt update
sudo apt install -y \
libasio-dev \
libtinyxml2-dev
```
Additionally, *Fast DDS Python* also depends on [SWIG 4.0](http://www.swig.org/) and python3-dev. Install these dependencies running:
```bash
sudo apt update
sudo apt install -y \
swig \
libpython3-dev
```
### Build and install
```bash
# Change directory to the location where the colcon workspace will be created
cd
# Create workspace directory
mkdir -p fastdds_python_ws/src
cd fastdds_python_ws
# Get workspace setup file
wget https://raw.githubusercontent.com/eProsima/Fast-DDS-python/main/fastdds_python.repos
# Download repositories
vcs import src < fastdds_python.repos
# Build the workspace
colcon build
```
Please, refer to [colcon documentation](https://colcon.readthedocs.io/en/released/reference/verb/build.html) for more information, such as building only one of the packages.
## Python example
Fast DDS documentation includes a first publisher-subscriber application using Python.
Please refer to [this section](https://fast-dds.docs.eprosima.com/en/latest/fastdds/getting_started/simple_python_app/simple_python_app.html#) for more information.