$npx skillfedfor your agent

python3-dtls

Python Datagram Transport Layer Security

With conditionsPyPI Python ModulesReleased Nov 2020213.8K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — python3_dtls-1.3.0-py3-none-any.whl
v1.3.0 · released 2020-11-06

Yes, if you need DTLS for UDP communication and can accept dormant maintenance. The package is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, do not use it if you require active security updates or compatibility with Python versions beyond 3.6—the last release was 2020-11-06 and the repository shows no recent activity.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires OpenSSL 1.1.1 or higher installed on the system; on Windows, source distributions include OpenSSL DLLs for 32-bit and 64-bit architectures.
  • Low friction: pure Python wheel with no runtime dependencies.
  • However, maintenance is dormant—last release was 2020-11-06 and last commit 2023-10-04, so security patches and compatibility updates are unlikely.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 (permissive): you may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state material changes.

last release 2020-11-06 (2107 days) · last repo commit 2023-10-04 · 9 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 213,783 downloads/mo, #9,428 on PyPI

Verify before relying

pip install python3-dtls

import ssl
from socket import socket, AF_INET, SOCK_DGRAM
from dtls import do_patch
do_patch()
sock = ssl.wrap_socket(socket(AF_INET, SOCK_DGRAM))
sock.connect(('example.com', 1234))
sock.send(b'message')
  • Whether the package works reliably with Python versions beyond 3.6 (classifier lists only 3.6, but requires_python is unspecified).
  • Current compatibility with modern OpenSSL versions and whether security patches from OpenSSL are automatically inherited.
  • Whether dormant maintenance affects real-world reliability for production UDP/DTLS workloads.
Same gist for agents: .md · .json

What it is and what it does

PyDTLS brings DTLS (RFC 6347) to Python by patching the standard library's ssl module to handle UDP datagram sockets the same way it handles TCP streams. It provides encryption, server and user authentication, and message authentication for UDP-based communication. The package is pure Python and interfaces with OpenSSL through ctypes, making it portable across operating systems.

The library implements DTLS connection semantics on top of connectionless UDP by managing handshakes, cookie exchanges (to prevent denial-of-service attacks), and demultiplexing of datagrams to the correct peer connection. You can use either the familiar ssl module interface (after calling do_patch) or the lower-level SSLConnection class directly. Version 1.3.0 adds support for DTLS 1.2, forward secrecy via elliptic curve cryptography, and finer-grained configuration.

Use it for

  • Securing real-time communication protocols (VoIP, video streaming, gaming) where UDP latency is critical and TLS over TCP is too slow.
  • Protecting IoT device communication where bandwidth and latency constraints make UDP preferable to TCP.
  • Building DTLS-compliant servers that must authenticate clients and prevent spoofing attacks via the DTLS cookie exchange.
  • Migrating existing UDP applications to encrypted communication without rewriting socket code—use do_patch to extend ssl module.
  • Testing DTLS implementations or building DTLS-aware network tools in pure Python.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need DTLS for UDP communication and can accept dormant maintenance.

The package is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, do not use it if you require active security updates or compatibility with Python versions beyond 3.6—the last release was 2020-11-06 and the repository shows no recent activity.

Install

python3-dtls on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. However, maintenance is dormant—last release was 2020-11-06 and last commit 2023-10-04, so security patches and compatibility updates are unlikely.

Requires OpenSSL 1.1.1 or higher installed on the system; on Windows, source distributions include OpenSSL DLLs for 32-bit and 64-bit architectures.

License in practice

Apache-2.0 (permissive): you may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state material changes.

Quickstart

pip install python3-dtls

import ssl
from socket import socket, AF_INET, SOCK_DGRAM
from dtls import do_patch
do_patch()
sock = ssl.wrap_socket(socket(AF_INET, SOCK_DGRAM))
sock.connect(('example.com', 1234))
sock.send(b'message')

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.6 (classifier lists only 3.6, but requires_python is unspecified).
  • Current compatibility with modern OpenSSL versions and whether security patches from OpenSSL are automatically inherited.
  • Whether dormant maintenance affects real-world reliability for production UDP/DTLS workloads.

Package facts

LicenseApache-2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 2,107 days since the last release
Last repo commit
First released
Downloads213,783 / month, #9,428 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.6Topic :: Security :: CryptographyTopic :: Software Development :: Libraries :: Python Modules

Evidence: python3_dtls-1.3.0-py3-none-any.whl

Tags

Capabilities
dtls udp encryptiondatagram transport layer security pythonsecure udp socketsdtls rfc 6347ssl for udpencrypted datagram communication
Topics
udp-securitydtlscryptography

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “dtls udp encryption”

  • python3-dtlsAdds DTLS (Datagram Transport Layer Security) support to Python by…
  • questdbA Python client library for QuestDB that sends data via the QuestDB…
  • pproxypproxy is an asynchronous proxy server that tunnels TCP and UDP…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pyOpenSSL · backports.ssl · asyncio-dgram · oscrypto · M2Crypto · noiseprotocol · ndg-httpsclient · tlslite-ng · ldap3 · pproxy