Subcategories
Packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
Provides Python bindings for Slack's Web API, webhooks, Socket Mode, OAuth, and other platform APIs, enabling apps to send messages, manage files, verify requests, and interact with Slack workspaces.
Install it if you need to integrate Python applications with Slack—whether for bots, notifications, or custom workflows.
Kombu is a messaging library that provides a high-level Python interface to AMQP and other message brokers, supporting pluggable transports for RabbitMQ, Redis, MongoDB, Amazon SQS, and others.
Install it if you are building any distributed system that requires reliable message passing.
Trio is an async I/O library that lets you write concurrent Python programs using async/await syntax, handling multiple network connections, file operations, and tasks simultaneously with a focus on correctness and ease of use.
Install it if you need to write concurrent I/O code and prefer structured concurrency principles and a simpler API over asyncio.
Thrift is the Python bindings for Apache Thrift, an RPC framework that generates code for serializing and transmitting structured data across language and platform boundaries.
Install only if your architecture actually calls for Thrift; it is not a general-purpose serialization library.
Provides asynchronous DNS resolution for asyncio applications using the pycares library, supporting query types including A, AAAA, MX, CNAME, TXT, and others.
Install it if you need asynchronous DNS resolution in an asyncio codebase; the single dependency (pycares) is well-established.
AsyncSSH provides an asynchronous SSH client and server implementation for Python 3.10+, supporting SSHv2, SFTP, and SCP protocols with full key exchange, authentication, and channel management.
Install it if you need async SSH functionality in Python.
Represents and manipulates IPv4, IPv6, MAC addresses and related network objects; supports CIDR notation, subnetting, set operations, IANA lookups, and DNS reverse generation.
Pika is a pure-Python AMQP 0-9-1 client library for RabbitMQ that enables you to publish and consume messages over AMQP connections.
Install it if you need to communicate with RabbitMQ.
SMBv2 and SMBv3 client library for Python that enables reading, writing, and managing files on remote SMB/CIFS network shares with support for NTLM and Kerberos authentication.
Install it if you need to interact with Windows file shares or other SMB resources from Python; the main gotcha is the Python 3.10+ requirement and optional Kerberos…
Implements SASL authentication transports for Thrift RPC clients, enabling secure authentication over Thrift connections using the TSaslClientTransport.
aiokafka is an asyncio-based client library for Apache Kafka that provides asynchronous producer and consumer APIs for publishing and consuming messages.
Provides Python interfaces to Slack's Web API and Real Time Messaging (RTM) API for building Slack applications and bots.
Install only if you are maintaining legacy code or have a specific reason not to migrate.
Manages Azure IoT Hub resources—creation, configuration, and lifecycle operations—through Python code using Azure Resource Manager APIs.
Manages Azure network resources (virtual networks, load balancers, firewalls, ExpressRoute circuits, and related infrastructure) via Python client library backed by Azure REST APIs.
Install it if you need to manage Azure networking resources programmatically.
Automates DNS validation for Let's Encrypt certificate issuance by managing Cloudflare DNS records through Certbot's plugin system.
Install it if you use Cloudflare for DNS and want to automate Let's Encrypt certificate issuance via DNS validation; skip it only if you use a different DNS provider…
Enumerate network interfaces and their IP addresses across Linux, macOS, Windows, and BSD systems without requiring compilation.
Install it if you need to query local network configuration programmatically.
Kazoo provides a higher-level Python client API for Apache ZooKeeper, simplifying coordination, configuration management, and distributed locking operations.
Install it if you're building on ZooKeeper for coordination; skip it only if you don't need ZooKeeper or prefer a different coordination backend.
uAMQP is an AMQP 1.0 client library for Python that enables communication over the Advanced Message Queuing Protocol, primarily used by Azure services like Event Hubs and Service Bus.
No, not for new projects.
Scapy is a Python library for forging, decoding, sending, and capturing network packets across many protocols, enabling interactive packet manipulation and network analysis tasks.
However, the GPL-2.0 copyleft license is a hard blocker for proprietary software, and you must have root/administrator access to use packet capture and injection…
Provides Python abstractions and utilities for Controller Area Network (CAN) communication, supporting multiple hardware backends and message logging formats.
Install it if you need to communicate with CAN buses from Python.
Execute commands, scripts, and file operations on remote Windows hosts via PowerShell Remoting Protocol (PSRP) and Windows Remote Management (WinRM) from Python.
Install it if you need to execute commands or manage files on Windows hosts from Python.
Implements a user-space WireGuard server that transparently proxies traffic from WireGuard clients, with asyncio-like Python bindings for TCP and UDP packet handling.
Install only if you are maintaining an existing deployment that already depends on it and cannot migrate.
Downloads files from HTTP URLs with progress reporting, usable as a command-line tool or Python library.
Provides an fsspec-compatible filesystem interface for SFTP/SSH connections, allowing you to read, write, and manage files on remote servers using standard filesystem operations.
pysmb implements the SMB/CIFS protocol to let Python applications read, write, and transfer files to and from Windows file shares and Samba folders.
Provides portable access to network interface information (addresses, gateways, hardware details) across Linux, macOS, Windows, and other Unix-like systems from Python.
No—not recommended for new projects.
IMAPClient provides a Pythonic interface to IMAP servers, handling mailbox access, message retrieval, and email operations with automatic parsing of server responses and transparent UID management.
Bleak is an async Python client for connecting to and communicating with Bluetooth Low Energy (BLE) devices acting as GATT servers across Windows, macOS, Linux, and Android.
Install it if you need to communicate with BLE devices from Python.
Python client library for Consul, a service discovery and configuration management system, providing programmatic access to Consul's key-value store, health checks, service catalog, and agent APIs.
Taskiq is an asynchronous distributed task queue that lets you send and run both sync and async functions across worker processes, with built-in integrations for FastAPI and AioHTTP.
The main gotcha is that you must run a separate message broker—it's not a standalone queue.
PyModbus is a complete Modbus protocol implementation providing client, server, and simulator components with both synchronous and asynchronous APIs for industrial device communication.
Install it if you need to communicate with Modbus devices; the only caveat is to review API_changes when upgrading between minor versions, as the project does not…
Manages Azure Relay namespaces, hybrid connections, and WCF relays through the Azure Resource Manager API, providing programmatic control over relay infrastructure and network rules.
Install it if you need to manage relay infrastructure programmatically in Python.
dpkt parses and creates TCP/IP protocol packets with minimal dependencies, enabling fast inspection and manipulation of network traffic at the protocol level.
Telnet server, client, and protocol library for Python 3.9+ with asyncio and blocking API support, including CLI utilities and a backport of the removed telnetlib module for Python 3.13+.
Install it if you need telnet support, are migrating from the standard library, or are building MUD/BBS infrastructure.