A python extension module written in GOLANG to provide basic COAP-capabilities, including support for DTLS.
To compile and install PyCOAP you need:
$ sudo apt install golang python3 python3-dev
$ sudo pip3 install -U pip setuptools
$ git clone https://github.com/moroen/pycoap.git
$ cd pycoap
$ sudo python3 setup.py install
See included pycoap-client for a small example