Skip to content

pyzmq 27.1.0

Version history | Download JSON

  • PyPI https://pypi.org/project/pyzmq/
    Repository https://github.com/zeromq/pyzmq

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 708
        "Any" : 45
        "Untyped" : 412
    • 64.6% coverage
    • 60.8% coverage (strict)
    • 1165 typable
      • 708 typed
      • 412 untyped
      • 45 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 129
        "classes" : 676
        "other" : 264
    • 46 functions (+1 overloads)
      • 83 parameters
    • 67 classes
      • 264 methods (+16 overloads)
        • 392 parameters
      • 16 properties
    • 52 modules
      • 264 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
zmq 100.0% 100.0% 5 0
zmq.asyncio 15.8% 15.8% 19 1
zmq.auth.asyncio 90.0% 60.0% 10 0
zmq.auth.base 96.1% 90.2% 51 0
zmq.auth.certs 100.0% 100.0% 8 0
zmq.auth.ioloop 80.0% 40.0% 5 0
zmq.auth.thread 90.9% 81.8% 11 0
zmq.backend 94.5% 90.1% 91 0
zmq.backend.cffi 0.0% 0.0% 1 0
zmq.backend.cffi.context 0.0% 0.0% 11 0
zmq.backend.cffi.devices 0.0% 0.0% 9 0
zmq.backend.cffi.error 0.0% 0.0% 3 0
zmq.backend.cffi.message 0.0% 0.0% 21 0
zmq.backend.cffi.socket 6.2% 6.2% 48 0
zmq.backend.cffi.utils 16.7% 16.7% 6 0
zmq.backend.cython._zmq 17.4% 17.4% 23 0
zmq.backend.select 100.0% 100.0% 2 0
zmq.constants 96.5% 96.5% 256 0
zmq.decorators 0.0% 0.0% 6 0
zmq.devices.basedevice 80.4% 76.5% 51 0
zmq.devices.monitoredqueue 100.0% 100.0% 1 1
zmq.devices.monitoredqueuedevice 0.0% 0.0% 0 0
zmq.devices.proxydevice 0.0% 0.0% 0 0
zmq.devices.proxysteerabledevice 0.0% 0.0% 0 0
zmq.error 32.1% 32.1% 28 0
zmq.eventloop 0.0% 0.0% 0 0
zmq.eventloop.future 21.4% 7.1% 14 0
zmq.eventloop.ioloop 0.0% 0.0% 1 0
zmq.eventloop.zmqstream 51.9% 45.2% 104 0
zmq.green.core 100.0% 100.0% 1 0
zmq.green.device 0.0% 0.0% 4 0
zmq.green.eventloop 0.0% 0.0% 1 0
zmq.green.eventloop.zmqstream 0.0% 0.0% 3 0
zmq.log.handlers 34.6% 34.6% 26 0
zmq.ssh.forward 0.0% 0.0% 5 0
zmq.ssh.tunnel 0.0% 0.0% 28 2
zmq.sugar 0.0% 0.0% 1 0
zmq.sugar.attrsettr 88.2% 88.2% 17 0
zmq.sugar.context 96.3% 75.9% 54 1
zmq.sugar.frame 0.0% 0.0% 7 0
zmq.sugar.poll 75.0% 60.0% 20 0
zmq.sugar.socket 72.5% 68.8% 138 0
zmq.sugar.stopwatch 0.0% 0.0% 3 0
zmq.sugar.tracker 50.0% 50.0% 8 0
zmq.sugar.version 100.0% 100.0% 5 0
zmq.utils.garbage 0.0% 0.0% 26 0
zmq.utils.interop 100.0% 50.0% 2 0
zmq.utils.jsonapi 66.7% 50.0% 6 0
zmq.utils.monitor 100.0% 100.0% 5 0
zmq.utils.strtypes 0.0% 0.0% 8 0
zmq.utils.win32 28.6% 28.6% 7 0
zmq.utils.z85 0.0% 0.0% 5 0

Incomplete Annotations

zmq.asyncio (16 missing, 0 any)

Symbol Typable Typed Any
meth Poller._watch_raw_socket 5 0 0
meth Poller._unwatch_raw_sockets 3 0 0
meth ZMQEventLoop.init 2 0 0
meth Socket._get_selector 2 0 0
meth Socket._init_io_state 2 0 0
meth Socket._clear_io_state 1 0 0
func install 1 0 0

zmq.auth.asyncio (1 missing, 3 any)

Symbol Typable Typed Any
meth AsyncioAuthenticator.init 5 4 2
attr AsyncioAuthenticator.__task 1 1 1

zmq.auth.base (2 missing, 3 any)

Symbol Typable Typed Any
meth Authenticator.init 4 3 1
meth Authenticator.configure_curve_callback 3 3 1
meth Authenticator.handle_zap_message 2 1 0
attr Authenticator.log 1 1 1

zmq.auth.ioloop (1 missing, 2 any)

Symbol Typable Typed Any
meth IOLoopAuthenticator.init 5 4 2

zmq.auth.thread (1 missing, 1 any)

Symbol Typable Typed Any
meth ThreadAuthenticator.init 4 3 1

zmq.backend (5 missing, 4 any)

Symbol Typable Typed Any
meth Socket.connect 2 1 0
meth Socket.bind 2 1 0
meth Socket.send 5 5 1
meth Socket.recv_into 4 3 0
meth Context.init 3 2 0
meth Frame.init 5 4 1
attr Frame.buffer 1 1 1
attr Frame.tracker 1 1 1

zmq.backend.cffi (1 missing, 0 any)

Symbol Typable Typed Any
func zmq_version_info 1 0 0

zmq.backend.cffi.context (11 missing, 0 any)

Symbol Typable Typed Any
meth Context.init 3 0 0
meth Context.set 3 0 0
meth Context.get 2 0 0
meth Context.term 1 0 0
prop Context.underlying 1 0 0
prop Context.closed 1 0 0

zmq.backend.cffi.devices (9 missing, 0 any)

Symbol Typable Typed Any
func proxy 4 0 0
func proxy_steerable 5 0 0

zmq.backend.cffi.error (3 missing, 0 any)

Symbol Typable Typed Any
attr zmq_errno 1 0 0
func strerror 2 0 0

zmq.backend.cffi.message (21 missing, 0 any)

Symbol Typable Typed Any
meth Frame.init 5 0 0
meth Frame.del 1 0 0
meth Frame.close 1 0 0
meth Frame._buffer_from_zmq_msg 1 0 0
meth Frame.len 1 0 0
meth Frame.eq 2 0 0
meth Frame.buffer 2 0 0
meth Frame.copy 1 0 0
meth Frame.fast_copy 1 0 0
prop Frame.buffer 1 0 0
prop Frame.bytes 1 0 0
prop Frame.done 1 0 0
attr Frame.tracker 1 0 0
attr Frame.tracker_event 1 0 0
attr Frame.zmq_msg 1 0 0

zmq.backend.cffi.socket (45 missing, 0 any)

Symbol Typable Typed Any
attr IPC_PATH_MAX_LEN 1 0 0
meth Socket.init 5 0 0
meth Socket._check_closed_deep 1 0 0
meth Socket.close 2 0 0
meth Socket.bind 2 0 0
meth Socket.unbind 2 0 0
meth Socket.connect 2 0 0
meth Socket.disconnect 2 0 0
meth Socket.set 3 0 0
meth Socket.get 2 0 0
meth Socket._send_copy 3 0 0
meth Socket._send_frame 3 0 0
meth Socket.send 5 0 0
meth Socket.recv 4 0 0
meth Socket.recv_into 4 3 0
meth Socket.monitor 3 0 0
prop Socket.underlying 1 0 0
prop Socket.closed 1 0 0
attr Socket.context 1 0 0
attr Socket.copy_threshold 1 0 0

zmq.backend.cffi.utils (5 missing, 0 any)

Symbol Typable Typed Any
func curve_keypair 1 0 0
func has 2 0 0
func curve_public 2 0 0

zmq.backend.cython._zmq (19 missing, 0 any)

Symbol Typable Typed Any
meth Frame.init 6 0 0
meth Frame.dealloc 1 0 0
meth Frame.copy 1 0 0
meth Frame.getbuffer 3 2 0
meth Frame.get 2 0 0
meth Frame.set 3 0 0
prop Frame.buffer 1 0 0
prop Frame.bytes 1 0 0
attr Frame.more 1 0 0
attr Frame.tracker_event 1 0 0
attr Frame.tracker 1 0 0

zmq.constants (9 missing, 0 any)

Symbol Typable Typed Any
meth ReconnectStop._global_name 2 0 0
meth NormMode._global_name 2 0 0
meth Event._global_name 2 0 0
meth SocketOption.new 3 2 0
meth RouterNotify._global_name 2 0 0

zmq.decorators (6 missing, 0 any)

Symbol Typable Typed Any
func context 3 0 0
func socket 3 0 0

zmq.devices.basedevice (10 missing, 2 any)

Symbol Typable Typed Any
meth Device.bind_in_to_random_port 4 2 0
meth Device.setsockopt_in 3 3 1
meth Device.bind_out_to_random_port 4 2 0
meth Device.connect_out 2 1 0
meth Device.setsockopt_out 3 2 1
meth Device._reserve_random_port 4 2 0
meth Device._close_sockets 1 0 0
attr Device.done 1 0 0

zmq.error (19 missing, 0 any)

Symbol Typable Typed Any
meth DraftFDWarning.init 2 0 0
meth ZMQError.init 3 2 0
meth InterruptedSystemCall.init 3 0 0
meth InterruptedSystemCall.str 1 0 0
meth ZMQVersionError.init 3 2 0
meth ZMQVersionError.repr 1 0 0
meth ZMQVersionError.str 1 0 0
attr ZMQVersionError.min_version 1 0 0
attr ZMQVersionError.msg 1 0 0
attr ZMQVersionError.version 1 0 0
meth Again.init 3 0 0
meth ContextTerminated.init 3 0 0

zmq.eventloop.future (11 missing, 2 any)

Symbol Typable Typed Any
meth Context._socket_class 3 0 0
meth Context.init 3 3 2
meth Poller._watch_raw_socket 5 0 0
meth Poller._unwatch_raw_sockets 3 0 0

zmq.eventloop.ioloop (1 missing, 0 any)

Symbol Typable Typed Any
func install 1 0 0

zmq.eventloop.zmqstream (50 missing, 7 any)

Symbol Typable Typed Any
meth ZMQStream.init 3 2 0
meth ZMQStream.stop_on_recv 1 0 0
meth ZMQStream.stop_on_send 1 0 0
meth ZMQStream.stop_on_err 1 0 0
meth ZMQStream.on_err 2 1 0
meth ZMQStream.on_recv 3 2 0
meth ZMQStream.on_recv_stream 3 2 0
meth ZMQStream.on_send 2 1 0
meth ZMQStream.on_send_stream 2 1 0
meth ZMQStream.send 7 0 0
meth ZMQStream.send_multipart 7 7 1
meth ZMQStream.send_string 6 5 1
meth ZMQStream.send_unicode 6 5 1
meth ZMQStream.send_json 5 4 2
meth ZMQStream.send_pyobj 6 5 2
meth ZMQStream._finish_flush 1 0 0
meth ZMQStream.flush 3 2 0
meth ZMQStream.set_close_callback 2 1 0
meth ZMQStream._run_callback 4 0 0
meth ZMQStream._handle_events 3 0 0
meth ZMQStream._handle_recv 1 0 0
meth ZMQStream._handle_send 1 0 0
meth ZMQStream._check_closed 1 0 0
meth ZMQStream._rebuild_io_state 1 0 0
meth ZMQStream._add_io_state 2 0 0
meth ZMQStream._drop_io_state 2 0 0
meth ZMQStream._update_handler 2 0 0
meth ZMQStream._init_io_state 1 0 0
attr ZMQStream.bind 1 0 0
attr ZMQStream.bind_to_random_port 1 0 0
attr ZMQStream.connect 1 0 0
attr ZMQStream.setsockopt 1 0 0
attr ZMQStream.getsockopt 1 0 0
attr ZMQStream.setsockopt_string 1 0 0
attr ZMQStream.getsockopt_string 1 0 0
attr ZMQStream.setsockopt_unicode 1 0 0
attr ZMQStream.getsockopt_unicode 1 0 0

zmq.green.device (4 missing, 0 any)

Symbol Typable Typed Any
func device 4 0 0

zmq.green.eventloop (1 missing, 0 any)

Symbol Typable Typed Any
attr IOLoop 1 0 0

zmq.green.eventloop.zmqstream (3 missing, 0 any)

Symbol Typable Typed Any
meth ZMQStream.init 3 0 0

zmq.log.handlers (17 missing, 0 any)

Symbol Typable Typed Any
meth PUBHandler.setRootTopic 2 1 0
meth PUBHandler.setFormatter 3 0 0
meth PUBHandler.format 2 0 0
meth PUBHandler.emit 2 0 0
attr PUBHandler.root_topic 1 0 0
attr PUBHandler.formatters 1 0 0
meth TopicLogger.log 6 0 0
attr meth 1 0 0

zmq.ssh.forward (5 missing, 0 any)

Symbol Typable Typed Any
func forward_tunnel 5 0 0

zmq.ssh.tunnel (28 missing, 0 any)

Symbol Typable Typed Any
func paramiko_tunnel 8 0 0
func tunnel_connection 8 0 0
func openssh_tunnel 8 0 0
func try_passwordless_ssh 4 0 0

zmq.sugar (1 missing, 0 any)

Symbol Typable Typed Any
attr constants 1 0 0

zmq.sugar.attrsettr (2 missing, 0 any)

Symbol Typable Typed Any
meth AttributeSetter._get_attr_opt 3 1 0

zmq.sugar.context (2 missing, 11 any)

Symbol Typable Typed Any
meth Context.init 4 3 0
meth Context.exit 4 4 3
meth Context.copy 2 2 1
meth Context.deepcopy 2 2 1
meth Context.shadow_pyczmq 2 2 1
meth Context._add_socket 2 2 1
meth Context._rm_socket 2 2 1
meth Context.socket 4 4 1
meth Context.setsockopt 3 3 1
attr Context._instance 1 1 1
attr Context._instance_lock 1 0 0

zmq.sugar.frame (7 missing, 0 any)

Symbol Typable Typed Any
meth Frame.getitem 2 0 0
meth Frame.repr 1 0 0
prop Frame.group 2 0 0
prop Frame.routing_id 2 0 0

zmq.sugar.poll (5 missing, 3 any)

Symbol Typable Typed Any
meth Poller.contains 2 2 1
meth Poller.register 3 2 1
meth Poller.modify 3 0 0
meth Poller.unregister 2 1 1

zmq.sugar.socket (38 missing, 5 any)

Symbol Typable Typed Any
meth Socket.init 5 4 0
meth Socket.del 1 0 0
meth Socket.repr 1 0 0
meth Socket.exit 3 0 0
meth Socket.copy 2 1 0
meth Socket.deepcopy 2 1 0
meth Socket.close 2 1 0
meth Socket.dir 1 0 0
meth Socket.setattr 3 0 0
meth Socket.set_string 4 3 0
meth Socket.setsockopt_unicode 4 3 0
meth Socket.setsockopt_string 4 3 0
meth Socket.get_string 3 2 0
meth Socket.getsockopt_unicode 3 2 0
meth Socket.getsockopt_string 3 2 0
meth Socket.send 7 7 1
meth Socket.send_multipart 6 4 0
meth Socket._deserialize 3 3 1
meth Socket.send_serialized 6 0 0
meth Socket.recv_serialized 4 0 0
meth Socket.send_string 6 5 0
meth Socket.send_unicode 6 5 0
meth Socket.send_pyobj 5 4 1
meth Socket.recv_pyobj 2 2 1
meth Socket.send_json 4 3 1
meth Socket.recv_json 3 2 0
attr Socket.context 1 0 0
attr Socket.hwm 1 0 0

zmq.sugar.stopwatch (3 missing, 0 any)

Symbol Typable Typed Any
meth Stopwatch.init 1 0 0
meth Stopwatch.start 1 0 0
meth Stopwatch.stop 1 0 0

zmq.sugar.tracker (4 missing, 0 any)

Symbol Typable Typed Any
attr _FINISHED_TRACKER 1 0 0
meth MessageTracker.init 2 1 0
meth MessageTracker.wait 2 1 0
prop MessageTracker.done 1 0 0

zmq.utils.garbage (26 missing, 0 any)

Symbol Typable Typed Any
meth GarbageCollector.init 2 0 0
meth GarbageCollector._atexit 1 0 0
meth GarbageCollector.stop 1 0 0
meth GarbageCollector._clear 1 0 0
meth GarbageCollector._stop 1 0 0
meth GarbageCollector.start 1 0 0
meth GarbageCollector.is_alive 1 0 0
meth GarbageCollector.store 3 0 0
meth GarbageCollector.del 1 0 0
prop GarbageCollector.context 2 0 0
prop GarbageCollector._push_socket 1 0 0
attr GarbageCollector.refs 1 0 0
attr GarbageCollector.pid 1 0 0
attr GarbageCollector.thread 1 0 0
meth GarbageCollectorThread.init 2 0 0
meth GarbageCollectorThread.run 1 0 0
attr GarbageCollectorThread.gc 1 0 0
attr GarbageCollectorThread.daemon 1 0 0
attr GarbageCollectorThread.pid 1 0 0
attr GarbageCollectorThread.ready 1 0 0
attr gc 1 0 0

zmq.utils.interop (0 missing, 1 any)

Symbol Typable Typed Any
func cast_int_addr 2 2 1

zmq.utils.jsonapi (2 missing, 1 any)

Symbol Typable Typed Any
func loads 3 2 0
func dumps 3 2 1

zmq.utils.strtypes (8 missing, 0 any)

Symbol Typable Typed Any
func cast_bytes 4 0 0
func cast_unicode 4 0 0

zmq.utils.win32 (5 missing, 0 any)

Symbol Typable Typed Any
meth allow_interrupt._init_action 2 0 0
meth allow_interrupt.enter 1 0 0
meth allow_interrupt.exit 2 0 0

zmq.utils.z85 (5 missing, 0 any)

Symbol Typable Typed Any
func decode 2 0 0
func encode 2 0 0
attr Z85MAP 1 0 0

Type-Ignore Comments

Flavor Count
type: ignore 5