Skip to main content

Python ZMQ Client/Server Wrapper

Project description

zmq_client_server

A simple Server and Client wrapper for ZMQ Python. Builds on top of zmq, zmq.asyncio to support an asynchronous server, and a synchronous client.

Both Server and Client supports the Request-Reply, Push-Pull, and Publish-Subscribe message patterns.


Basic Usage

ZmqClient

from zmq_python import ZmqClient

client = ZmqClient(
    sub_ip = "<pubsub_socket_ip>",
    push_ip = "<pushpull_socket_ip>",
    req_ip = "<requestreply_socket_ip>"
)

ZmqServer

from zmq_python import ZmqServer

client = ZmqServer(
    pub_ip = "<pubsub_socket_ip>",
    pull_ip = "<pushpull_socket_ip>",
    rep_ip = "<requestreply_socket_ip>"
)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

zmq_client_server-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file zmq_client_server-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zmq_client_server-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b25fd50d573e5abc3930898d6a3d19632892ca0f52d08d73bc5794d7da11223a
MD5 67bac0b88cd57e8a8fe8cffe18cf7aa0
BLAKE2b-256 aee8a592c2fbe9e37310f28852664348d41f10b31ef6b42b2416d05cde5e37d3

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