Python interface for DSSM
Project description
Distributed Streaming Data Sharing Manager (DSSM)
This repository contains a Python interface for the Distributed Streaming Data Sharing Manager (DSSM)
Requirements
The Python interface requires an executable DSSM environment. You can find the instructions under link follows.
Installing
To use the Python interface, the following library must be installed.
pip install sysv-ipc
Using Pip:
sudo apt install python3-pip python3-setuptools python3-venv python3-wheel
pip install --upgrade setuptools wheel build hatchling
pip install -i https://test.pypi.org/simple/ dssm-python
Dataclass
The Python interface makes it possible to exchange data between different processes, both in Python and in C.
To define which data is exchanged, the dataclass must first be defined. An example can be found in the /sample folder.
The corresponding dataclass of the C++ example is the /sample/ini_ssm.py class.
Sample
The sample programs included can be found can be found in the project. These are defined in such a way that data can be exchanged between Python and C/C++.
This was tested with the SSM C++ sample that can be found in the corresponding project in the /sample/Cpp_sample folder.
The following shows how data can be exchanged between Python and C++.
For the data exchange to work, the coordinator must be executed as in DSSM.
ssm-coordinator
C++ write data
In this example, data is sent from the C++ example and read by Python.
C++ write
./samples/Cpp_Sample/ssmWriteSample
Python read
python3 sample/read_sample.py
Python write data
In this example, data is sent from the Python example and read by C++ and Python.
Python write
python3 sample/write_sample.py
Python read
python3 sample/read_sample.py
C++ read
./samples/Cpp_Sample/ssmReadSample
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dssm_python-0.0.3.tar.gz.
File metadata
- Download URL: dssm_python-0.0.3.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5d42fd56166110f9efe9d4fbabe4d7fd9bd8d724eed3d68bca530680f7c43c
|
|
| MD5 |
91c36398d5fae545d843026e776f8ee6
|
|
| BLAKE2b-256 |
9fd93c7be0759d5e9bfd6821764d24cf8d52bee580436652b7bd9e8cbe7c7f2f
|
File details
Details for the file dssm_python-0.0.3-py3-none-any.whl.
File metadata
- Download URL: dssm_python-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d437c28af4e73ed132063d1205f070e2c7da95b7dc8a424b268fe8583c71916
|
|
| MD5 |
6bde308209e93d61f9513d8f16bf7184
|
|
| BLAKE2b-256 |
22305f41861227dcb3ed5e4245b121f973785a3a485f76260eb8ce634b9eb33d
|