Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ezmsg logo 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, ezmsg requires minimum Python 3.8.
  • typing_extensions

Testing ezmsg requires:

  • pytest
  • pytest-cov
  • pytest-asyncio
  • numpy

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://www.ezmsg.org/

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 ezmsg graphs
  • ezmsg-zmq -- ZeroMQ pub and sub nodes for ezmsg graphs
  • ezmsg-panel -- Plotting tools for ezmsg that 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 -- ezmsg visualization 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.

Financial Support

ezmsg is supported by Johns Hopkins University (JHU), the JHU Applied Physics Laboratory (APL), Blackrock Neurotech and by the Wyss Center for Bio and Neuro Engineering.

Release files for ezmsg 3.10.0b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ezmsg 3.10.0b3
File Size Uploaded
ezmsg-3.10.0b3.tar.gz 342.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ezmsg 3.10.0b3
File Interpreter ABI Platform
ezmsg-3.10.0b3-py3-none-any.whl Python 3 none any Details

Total release size: 528.3 kB

Release files / ezmsg-3.10.0b3.tar.gz

Download URL ezmsg-3.10.0b3.tar.gz
Size 342.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5cad53b9a2456b33a61b9f7ae828aeb6b4223507e296cdb1968b9d6685ce980b
BLAKE2b-256 checksum
How to use checksums
729a7c36ba3f448d35a6c3ec562829b3e581fff8fadabd85c82fe132417432ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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}

Release files / ezmsg-3.10.0b3-py3-none-any.whl

Download URL ezmsg-3.10.0b3-py3-none-any.whl
Size 185.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d560ead952dc12975d3845860007bd3f490a2408aab68609cce54a126c906d0
BLAKE2b-256 checksum
How to use checksums
efbf734924a15ed6b148ed00ce9fcb55508af18ed7d57207ee3cfb0b511a7dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page