I understood from this example that proxies could be set by attribute, however this did not work in my test:
import primp
proxy = 'XXX'
url = 'https://icanhazip.com/'
client1 = primp.Client(proxy=proxy)
print(client1.get(url).text) # returns the proxy IP
client2 = primp.Client()
client2.proxy = proxy
print(client2.get(url).text) # returns your own IP
I understood from this example that proxies could be set by attribute, however this did not work in my test: