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
Metadata
Release files for dssm-python 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dssm_python-0.0.3.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dssm_python-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.7 kB
Release files / dssm_python-0.0.3.tar.gz
| Download URL | dssm_python-0.0.3.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd5d42fd56166110f9efe9d4fbabe4d7fd9bd8d724eed3d68bca530680f7c43c
|
|
BLAKE2b-256 checksum How to use checksums |
9fd93c7be0759d5e9bfd6821764d24cf8d52bee580436652b7bd9e8cbe7c7f2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / dssm_python-0.0.3-py3-none-any.whl
| Download URL | dssm_python-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d437c28af4e73ed132063d1205f070e2c7da95b7dc8a424b268fe8583c71916
|
|
BLAKE2b-256 checksum How to use checksums |
22305f41861227dcb3ed5e4245b121f973785a3a485f76260eb8ce634b9eb33d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|