A Python package for creating distributed nodes using ZeroMQ
Project description
Nexstem Instinct Nodes
A Python package for creating distributed nodes using ZeroMQ for communication.
Features
- Abstract base class for creating distributed nodes
- ZeroMQ-based communication between nodes
- Support for multiple producers and consumers
- Lifecycle management (start, stop, shutdown)
- Support for different message formats (JSON and multipart strings)
Installation
pip install instinct-py-nodes
Usage
from instinct_py_nodes import Node, ESignalType, LifeCycleState
class MyNode(Node):
def onStart(self):
# Your startup logic here
pass
def onStop(self):
# Your stop logic here
pass
def onShutdown(self):
# Your shutdown logic here
pass
def onSignal(self):
# Your signal handling logic here
pass
# Create and start your node
node = MyNode()
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
File details
Details for the file instinct_py_nodes-0.2.1.tar.gz.
File metadata
- Download URL: instinct_py_nodes-0.2.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e90d8eb053ff255ec636318719f58854f6070694e203ec35b4deb5e75fbbb50
|
|
| MD5 |
a1c87d2e8a5894b53b4c549f371ccf50
|
|
| BLAKE2b-256 |
00c94d7a897a47cf8fa430e175200a76d84f009fc8597362f92da8aafd135ee5
|