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.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

instinct_py_nodes-0.1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: instinct_py_nodes-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.16

File hashes

Hashes for instinct_py_nodes-0.1.1.tar.gz
Algorithm Hash digest
SHA256 99cc659c59f2c8c844fee21293ec8ac9350e376688f948e1866c30f60b2e5903
MD5 703be4d0c20218fd34840c1541a94b4e
BLAKE2b-256 5b0a47aaec093c5ad0d79a222ffbb82088b8b3177bbf795fa1b92070f31d5e3b

See more details on using hashes here.

File details

Details for the file instinct_py_nodes-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for instinct_py_nodes-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d7b8e49bd9e85c3f1ba9b5631005389a22cbcce3a1b7ba684eb5355b9e5c51b
MD5 18f5192d1ef7b17bacff3e6548f0b331
BLAKE2b-256 71a4c8a5a123704df67456e80e799fc4eaf63df7f0554ff5f3493e8d2ba1dd1f

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