Implementation of Datagram Transport Layer Security (DTLS) for Python. Provides DTLS client and server support over UDP. Current version 1.3.0 has no declared Python version requirement. Release cadence is low, typically one release every few years.
pip install python3-dtlsVerified import paths — ran on the pinned version, not inferred.
Simple DTLS client and server example using DTLSClientSocket and DTLSServerSocket.
Wrap socket operations with timeout or use select module.
Be prepared to migrate to a library supporting DTLS 1.2 or later (e.g., pyOpenSSL with DTLS).
Install system dependencies: on Ubuntu/Debian run 'sudo apt-get install build-essential libssl-dev libffi-dev' before pip install.
Use DTLSClientSocket and DTLSServerSocket instead of any previous names.