Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

instinct_py_nodes-0.2.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file instinct_py_nodes-0.2.0.tar.gz.

File metadata

  • Download URL: instinct_py_nodes-0.2.0.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

Hashes for instinct_py_nodes-0.2.0.tar.gz
Algorithm Hash digest
SHA256 615d29ad3d60dbe3f38bda81a6a7ea04263f19c77d918b5ca572876c0720fa56
MD5 1af26d452180657cfd5d4cc2aef962f6
BLAKE2b-256 c98e08c9517963d53e50f78c6f315686deeeca1a68dd399c044e96d2c0a8921a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page