Request python deepstream demo based on RTP video feed

I have writen a python code, which is similar to gst-launch-1-0 command , but the performance is NOT good.

Can you help to take a look and based on this python code I want to use deep stream code.

As currently, I didn’t find any python deepstream code for RTP video source.