{"library":"python3-dtls","title":"Python DTLS","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install python3-dtls"],"cli":null},"imports":["from dtls import DTLSClientSocket","from dtls import DTLSServerSocket"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom dtls import DTLSClientSocket, DTLSServerSocket\n\n# Client example\nclient_socket = DTLSClientSocket()\nclient_socket.connect(('localhost', 4433))\nclient_socket.send(b'Hello over DTLS')\ndata = client_socket.recv(1024)\nprint(data)\nclient_socket.close()\n\n# Server example\nserver_socket = DTLSServerSocket()\nserver_socket.bind(('', 4433))\nclient, addr = server_socket.accept()\ndata = client.recv(1024)\nprint('Received:', data)\nclient.send(b'Hello from server')\nclient.close()","lang":"python","description":"Simple DTLS client and server example using DTLSClientSocket and DTLSServerSocket.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}