from get_around import GetAround
# Route requests through a proxy server.
client = GetAround(server="https://proxy-server", password="password")
# Mirrors httpx's request API and returns standard httpx.Response objects.
response = client.get("https://httpbin.org/get", params={"foo": "bar"})
# POST with a JSON body.
response = client.post("https://httpbin.org/post", json={"key": "value"})
# Upstream HTTP errors (404, 500, etc.) are returned as normal responses,
# not raised. Check response.status_code as you would with httpx.
print(response.status_code)
Overview
get-around is an httpx wrapper that
transparently routes requests through a custom proxy server. It mirrors httpx's request
API (get, post, put, patch, delete, head, options, request) and returns
standard httpx.Response objects. When configured with a proxy server and password,
requests are forwarded through that server. When no server is set, requests are sent
directly.
The companion proxy server is get-around-server.