Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/zeromq/pyzmq
/ functions
Functions
1,090 in github.com/zeromq/pyzmq
⨍
Functions
1,090
◇
Types & classes
164
↳
Endpoints
1
↓ 126 callers
Method
socket
Create a Socket associated with this Context. Parameters ---------- socket_type : int The socket type, which can
zmq/sugar/context.py:324
↓ 105 callers
Method
connect
s.connect(addr) Connect to a remote 0MQ socket. Returns a context manager which will call disconnect on exit. .. versionadd
zmq/sugar/socket.py:326
↓ 104 callers
Method
join
wait for me to finish, like Thread.join. Reimplemented appropriately by subclasses.
zmq/devices/basedevice.py:262
↓ 101 callers
Method
socket
(self, socket_type)
tests/zmq_test_utils.py:85
↓ 97 callers
Method
close
(self, linger=None)
zmq/green/core.py:82
↓ 86 callers
Method
poll
Poll the registered 0MQ or native fds for I/O. If there are currently events ready to be processed, this function will return immediately.
zmq/sugar/poll.py:80
↓ 79 callers
Method
bind
s.bind(addr) Bind the socket to an address. This causes the socket to listen on a network port. Sockets on the other side of
zmq/sugar/socket.py:291
↓ 79 callers
Method
send
()
tests/test_retry_eintr.py:67
↓ 76 callers
Method
send_multipart
wrap send_multipart to prevent state_changed on each partial send
zmq/green/core.py:284
↓ 74 callers
Method
recv
call recv in a way that raises if there is nothing to receive
tests/zmq_test_utils.py:191
↓ 66 callers
Method
instance
Returns a global Context instance. Most single-process applications have a single, global Context. Use this method instead of passing
zmq/sugar/context.py:207
↓ 65 callers
Method
recv_multipart
call recv_multipart in a way that raises if there is nothing to receive
tests/zmq_test_utils.py:195
↓ 60 callers
Method
create_bound_pair
Create a bound socket pair using a random port.
tests/zmq_test_utils.py:126
↓ 57 callers
Method
done
(self)
zmq/backend/cffi/message.py:187
↓ 48 callers
Method
register
p.register(socket, flags=POLLIN|POLLOUT) Register a 0MQ socket or native fd for I/O monitoring. register(s,0) is equivalent to unreg
zmq/sugar/poll.py:31
↓ 46 callers
Method
term
Close or terminate the context. Context termination is performed in the following steps: - Any blocking operations currently in prog
zmq/sugar/context.py:243
↓ 45 callers
Method
send
send, which will only block current greenlet state_changed always fires exactly once (success or fail) at the end of this method.
zmq/green/core.py:204
↓ 43 callers
Function
_check_rc
internal utility for checking zmq return condition and raising the appropriate Exception class
zmq/backend/cython/_zmq.py:173
↓ 39 callers
Method
Context
(self)
zmq/tests/__init__.py:86
↓ 38 callers
Method
recv
recv, which will only block current greenlet state_changed always fires exactly once (success or fail) at the end of this method.
zmq/green/core.py:238
↓ 37 callers
Method
setsockopt
set default socket options for new sockets created by this Context .. versionadded:: 13.0
zmq/sugar/context.py:367
↓ 37 callers
Method
start
Create and bind the ZAP socket
zmq/auth/base.py:80
↓ 36 callers
Method
Context
(self)
tests/zmq_test_utils.py:79
↓ 36 callers
Method
get
trigger state_changed on getsockopt(EVENTS)
zmq/green/core.py:304
↓ 32 callers
Method
recv_multipart
wrap recv_multipart to prevent state_changed on each partial recv
zmq/green/core.py:294
↓ 24 callers
Method
bind_to_random_port
Bind this socket to a random port in a range. If the port range is unspecified, the system will choose the port. Parameters
zmq/sugar/socket.py:469
↓ 24 callers
Method
start
(self)
examples/mongodb/controller.py:64
↓ 23 callers
Method
assertRaisesErrno
(self, errno, func, *args, **kwargs)
tests/zmq_test_utils.py:210
↓ 22 callers
Method
getsockopt
get default socket options for new sockets created by this Context .. versionadded:: 13.0
zmq/sugar/context.py:374
↓ 18 callers
Function
_check_rc
internal utility for checking zmq return condition and raising the appropriate Exception class
zmq/error.py:146
↓ 18 callers
Method
recv_into
recv_into, which will only block current greenlet
zmq/green/core.py:267
↓ 17 callers
Function
test
(ctx)
tests/test_decorators.py:21
↓ 16 callers
Method
unregister
Remove a 0MQ socket or native fd for I/O monitoring. Parameters ---------- socket : Socket The socket instance to
zmq/sugar/poll.py:66
↓ 15 callers
Method
cancel
()
zmq/_future.py:194
↓ 14 callers
Method
can_connect
Check if client can connect to server using tcp transport
tests/test_auth.py:143
↓ 14 callers
Method
fileno
Return edge-triggered file descriptor for this socket. This is a read-only edge-triggered file descriptor for both read and write events on t
zmq/sugar/socket.py:392
↓ 14 callers
Method
recv_json
Receive a Python object as a message using json to serialize. Keyword arguments are passed on to json.loads Parameters -----
zmq/sugar/socket.py:1011
↓ 13 callers
Method
format
Format a record.
zmq/log/handlers.py:153
↓ 13 callers
Method
is_alive
Is the garbage collection thread currently running? Includes checks for process shutdown or fork.
zmq/utils/garbage.py:174
↓ 13 callers
Method
on_recv
( self, callback: Callable[[list[bytes]], Any], )
zmq/eventloop/zmqstream.py:159
↓ 13 callers
Method
set
set socket option
zmq/green/core.py:315
↓ 12 callers
Function
_check_version
Check for libzmq raises ZMQVersionError if current zmq version is not at least min_version min_version_info is a tuple of integers, and will
zmq/error.py:199
↓ 12 callers
Function
f
(foo, bar, ctx, baz=None)
tests/test_decorators.py:29
↓ 12 callers
Method
send_json
Send a Python object as a message using json to serialize. Keyword arguments are passed on to json.dumps Parameters --------
zmq/sugar/socket.py:992
↓ 12 callers
Method
shadow
Shadow an existing libzmq socket address is a zmq.Socket or an integer (or FFI pointer) representing the address of the libzmq socket
zmq/sugar/socket.py:231
↓ 11 callers
Method
__state_changed
(self, event=None, _evtype=None)
zmq/green/core.py:114
↓ 11 callers
Method
alarm
start a timer to fire only once like signal.alarm, but with better resolution than integer seconds.
tests/test_retry_eintr.py:25
↓ 11 callers
Method
allow
Allow IP address(es). Connections from addresses not explicitly allowed will be rejected. - For NULL, all clients from this address
zmq/auth/base.py:93
↓ 11 callers
Function
socket
Fixture to create sockets, while tracking them for cleanup
tests/conftest.py:137
↓ 10 callers
Function
_check_closed
raise ENOTSUP if socket is closed Does not do a deep check
zmq/backend/cython/_zmq.py:1333
↓ 10 callers
Method
bind_in_to_random_port
Enqueue a random port on the given interface for binding on in_socket. See zmq.Socket.bind_to_random_port for details. .. ve
zmq/devices/basedevice.py:117
↓ 10 callers
Method
destroy
Close all sockets associated with this context and then terminate the context. .. warning:: destroy involves calling :me
zmq/sugar/context.py:289
↓ 10 callers
Function
line
()
examples/monitoring/simple_monitor.py:19
↓ 9 callers
Method
current
Returns the current thread’s IOLoop.
zmq/eventloop/_deprecated.py:158
↓ 9 callers
Method
get
(self, key)
zmq/_future.py:262
↓ 9 callers
Method
push_pull
(self)
tests/test_auth.py:174
↓ 9 callers
Function
recv_monitor_message
( socket: zmq.asyncio.Socket, flags: int = 0, )
zmq/utils/monitor.py:68
↓ 8 callers
Function
_retry_sys_call
make a call, retrying if interrupted with EINTR
zmq/backend/cffi/utils.py:65
↓ 8 callers
Method
cancelled
(self)
zmq/eventloop/future.py:37
↓ 8 callers
Function
create_bound_pair
(socket)
tests/conftest.py:179
↓ 8 callers
Function
log
Log a message to stderr
tools/find_vcredist.py:15
↓ 8 callers
Method
recv_serialized
Receive a message with a custom deserialization function. .. versionadded:: 17 Parameters ---------- deserialize : c
zmq/sugar/socket.py:851
↓ 8 callers
Method
send_serialized
Send a message with a custom serialization function. .. versionadded:: 17 Parameters ---------- msg : The message to
zmq/sugar/socket.py:830
↓ 7 callers
Method
_get_loop
Get event loop Notice if event loop has changed, and register init_io_state on activation of a new event loop
zmq/_future.py:49
↓ 7 callers
Method
_send_zap_reply
Send a ZAP reply to finish the authentication.
zmq/auth/base.py:428
↓ 7 callers
Method
bind_out_to_random_port
Enqueue a random port on the given interface for binding on out_socket. See zmq.Socket.bind_to_random_port for details. .. v
zmq/devices/basedevice.py:152
↓ 7 callers
Method
buffer
(self)
zmq/backend/cffi/message.py:169
↓ 7 callers
Method
close
Close the socket. If linger is specified, LINGER sockopt will be set prior to closing. Note: closing a zmq Socket may not c
zmq/sugar/socket.py:245
↓ 7 callers
Method
connect_handler
(self, topic=None)
tests/test_log.py:24
↓ 7 callers
Method
recv_pyobj
Receive a Python object as a message using UNSAFE pickle to serialize. .. warning:: Never deserialize an untrusted mess
zmq/sugar/socket.py:961
↓ 7 callers
Method
recv_string
Receive a unicode string, as sent by send_string. Parameters ---------- flags : int Any valid flags for :func:`So
zmq/sugar/socket.py:908
↓ 7 callers
Method
send
( self, data: Any, flags: int = ..., copy: bool = ..., *, trac
zmq/sugar/socket.py:578
↓ 7 callers
Method
send_pyobj
Send a Python object as a message using pickle to serialize. .. warning:: Never deserialize an untrusted message with p
zmq/sugar/socket.py:933
↓ 7 callers
Method
teardown_device
(self)
tests/test_monqueue.py:45
↓ 6 callers
Method
configure_curve
Configure CURVE authentication for a given domain. CURVE authentication uses a directory that holds all public client certificates, i
zmq/auth/base.py:133
↓ 6 callers
Method
disconnect
Disconnect from a remote 0MQ socket (undoes a call to connect). .. versionadded:: libzmq-3.2 .. versionadded:: 13.0
zmq/backend/cython/_zmq.py:1065
↓ 6 callers
Method
get_monitor_socket
Return a connected PAIR socket ready to receive the event notifications. .. versionadded:: libzmq-4.0 .. versionadded:: 14.0
zmq/sugar/socket.py:1066
↓ 6 callers
Method
on_send
Register a callback to be called on each send There will be two arguments:: callback(msg, status) * `msg` will be the l
zmq/eventloop/zmqstream.py:279
↓ 6 callers
Method
send_string
Send a Python unicode string as a message with an encoding. 0MQ communicates with raw bytes, so you must encode/decode text (str) aro
zmq/sugar/socket.py:880
↓ 6 callers
Method
stop
Stop the authentication thread
zmq/auth/thread.py:120
↓ 6 callers
Method
stop
Close the ZAP socket
zmq/auth/base.py:87
↓ 6 callers
Method
subscribe
Subscribe to a topic Only for SUB sockets. .. versionadded:: 15.3
zmq/sugar/socket.py:403
↓ 6 callers
Function
wait
()
tests/test_poll.py:14
↓ 6 callers
Method
wait
Wait for 0MQ to be done with the message or until `timeout`. Parameters ---------- timeout : float default: -1, w
zmq/sugar/tracker.py:70
↓ 5 callers
Function
_asbuffer
Get a C buffer from a memoryview
zmq/backend/cython/_zmq.py:261
↓ 5 callers
Function
_c_addr
cast an address input to bytes Expects a str, but accepts bytes and raises informative TypeError otherwise.
zmq/backend/cython/_zmq.py:672
↓ 5 callers
Function
_getsockopt
getsockopt, retrying interrupted calls checks rc, raising ZMQError on failure.
zmq/backend/cython/_zmq.py:1482
↓ 5 callers
Method
bind_mon_to_random_port
Enqueue a random port on the given interface for binding on mon_socket. See zmq.Socket.bind_to_random_port for details. .. v
zmq/devices/proxydevice.py:27
↓ 5 callers
Method
build_device
(self, mon_sub=b"", in_prefix=b'in', out_prefix=b'out')
tests/test_monqueue.py:18
↓ 5 callers
Method
flush
Flush pending messages. This method safely handles all pending incoming and/or outgoing messages, bypassing the inner loop, passing t
zmq/eventloop/zmqstream.py:417
↓ 5 callers
Method
get
Get a Frame option or property. See the 0MQ API documentation for zmq_msg_get and zmq_msg_gets for details on specific optio
zmq/backend/cython/_zmq.py:453
↓ 5 callers
Method
get
Get the value of a socket option. See the 0MQ API documentation for details on specific options. .. versionchanged:: 27
zmq/backend/cython/_zmq.py:853
↓ 5 callers
Method
get
Override in subclass
zmq/sugar/attrsettr.py:70
↓ 5 callers
Method
ping_pong
(self, s1, s2, msg)
tests/zmq_test_utils.py:140
↓ 5 callers
Method
recv
Receive a message. With flags=NOBLOCK, this raises :class:`ZMQError` if no messages have arrived; otherwise, this waits unti
zmq/backend/cython/_zmq.py:1218
↓ 5 callers
Method
run
wrap run_device in try/catch ETERM
zmq/devices/basedevice.py:244
↓ 5 callers
Method
run
(self, ev: EventLoop)
examples/asyncio/router_router.py:35
↓ 5 callers
Method
sending
Returns True if we are currently sending to the stream.
zmq/eventloop/zmqstream.py:532
↓ 5 callers
Method
set
Set socket options. See the 0MQ API documentation for details on specific options. Parameters ---------- op
zmq/backend/cython/_zmq.py:788
↓ 5 callers
Method
start
Start the authentication thread
zmq/auth/thread.py:103
next →
1–100 of 1,090, ranked by callers