pip install pyTempPM
Functions create_note that's all you need to use full functionality of TempPM service.
from pyTempPM import TempPM
note = TempPM()
note.create_note(note="is a test message")
# "https://temp.pm/?tE2D9Dlgx9InwK742E7Cf4901-3-7WkXq0DTHur0Namo8P95CM58E-N"