A simple DAG-based computation model
Project description
ezmsg
Messaging and Multiprocessing.
ezmsg is a pure-Python implementation of a directed acyclic graph (DAG) pub/sub messaging pattern based on labgraph which is optimized and intended for use in constructing real-time software. ezmsg implements much of the labgraph API (with a few notable differences), and owes a lot of its design to the labgraph developers/project.
ezmsg is very fast and uses Python's multiprocessing.shared_memory module to facilitate efficient message passing without C++ or any compilation/build tooling.
Installation
pip install ezmsg
Dependencies
- Due to reliance on
multiprocessing.shared_memory,ezmsgrequires minimum Python 3.8. typing_extensions
Testing ezmsg requires:
pytestpytest-covpytest-asyncionumpy
Setup (Development)
$ python3 -m venv env
$ source env/bin/activate
(env) $ pip install --upgrade pip poetry
(env) $ poetry install --with test
(env) $ python -m pytest tests # Optionally, Perform tests
Note that it is generally recommended to install poetry into its own standalone venv via the pipx cli tool.
Documentation
To build the documentation in this branch, install sphinx
pip install sphinx
Then change directory to the docs/ folder and run the make.bat file with an html specification.
cd docs
uv run make.bat html
https://ezmsg.readthedocs.io/en/latest/
ezmsg is very similar to labgraph, so you might get a primer with their documentation and examples. Additionally, there are many examples provided in the examples/tests directories strewn throughout this repository.
Extensions
ezmsg extensions can be installed individually or all at once. To install all the extension packages in one go, you can use the following command:
pip install "ezmsg[all_ext]"
This will install all the available public extension packages for ezmsg that are listed in pyproject.toml.
If you prefer to install a subset of extension packages, you can use the following command:
pip install "ezmsg[zmq,sigproc,...]"
Please note that the ezmsg package itself can still be installed without any additional extensions using pip install ezmsg.
Extensions can be managed manually as well. Here are some of the extensions we manage or are aware of:
- ezmsg-sigproc -- Timeseries signal processing modules
- ezmsg-websocket -- Websocket server and client nodes for
ezmsggraphs - ezmsg-zmq -- ZeroMQ pub and sub nodes for
ezmsggraphs - ezmsg-panel -- Plotting tools for
ezmsgthat use panel - ezmsg-blackrock -- Interface for Blackrock Cerebus ecosystem (incl. Neuroport) using
pycbsdk - ezmsg-lsl -- Source unit for LSL Inlet and sink unit for LSL Outlet
- ezmsg-unicorn -- g.tec Unicorn Hybrid Black integration for
ezmsg - ezmsg-gadget -- USB-gadget with HID control integration for Raspberry Pi (Zero/W/2W, 4, CM4)
- ezmsg-openbci -- OpenBCI Cyton serial interface for
ezmsg - ezmsg-ssvep -- Tools for running SSVEP experiments with
ezmsg - ezmsg-vispy --
ezmsgvisualization toolkit using PyQt6 and vispy.
Publications
A collection of academic papers, journals, and other publications that have cited or utilized ezmsg in research and development.
These publications provide insights into the practical applications and impact of ezmsg in various fields.
- A click-based electrocorticographic brain-computer interface enables long-term high-performance switch-scan spelling
- Stable Decoding from a Speech BCI Enables Control for an Individual with ALS without Recalibration for 3 Months
Financial Support
ezmsg is supported by Johns Hopkins University (JHU), the JHU Applied Physics Laboratory (APL), and by the Wyss Center for Bio and Neuro Engineering.
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 ezmsg-3.7.3.tar.gz.
File metadata
- Download URL: ezmsg-3.7.3.tar.gz
- Upload date:
- Size: 242.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
298aebfb44a745312484fa7bba0a4d9a4434675643428e59dd5d0d1c84d75d5b
|
|
| MD5 |
cace592ec9db08a23c7eeb395316a792
|
|
| BLAKE2b-256 |
18bb8bdf1ea16798b27345ea3c7986181d74537e09c5c592135f7b1f2ed19052
|
File details
Details for the file ezmsg-3.7.3-py3-none-any.whl.
File metadata
- Download URL: ezmsg-3.7.3-py3-none-any.whl
- Upload date:
- Size: 119.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea81e6abb7218fb7a1ab1b25bdc907e773a50153a05672834eedae1517d30f7b
|
|
| MD5 |
186eaf32b16167dc393dced9a5036842
|
|
| BLAKE2b-256 |
c89ce23cfdb6469a4ffbabc4b0a8918a8ebf77294c5ffab35e2a9fb1e43feec0
|