Python REST API Sample Code Request

Can someone please provide the Python sample code for implementing REST API using JSON. I couldn’t find (only SOAP there) that on the examples page. Thanks in advance, looking forward.