Skip to content

Instantly share code, notes, and snippets.

View jexio's full-sized avatar

Gleb Glushkov jexio

View GitHub Profile
@mivade
mivade / zmq_auth.py
Last active June 17, 2025 08:22
ZeroMQ Curve authentication demo
"""Simple demonstration of using ZMQ's Curve authentication.
This demo is adapted from the examples given in the `PyZMQ repository`__. Key
differences include:
* Using ``setsockopt`` to set Curve parameters instead of setting attributes
directly (help out your IDE!)
* Integration with ``asyncio``
__ https://github.com/zeromq/pyzmq/tree/master/examples