Skip to main content
Install the Python SDK and send your first request through a NodeMaven proxy. The nodemaven package builds proxy settings for Python applications. This guide starts with requests, then shows how to use the same configuration with httpx, aiohttp, and Playwright.

Before you start

You need Python 3.9 or newer, an active Residential/Mobile plan with available traffic, and your proxy credentials. This quickstart uses SDK version 0.1.7.

1. Install the package

Create a virtual environment in your project directory:
Activate it on macOS or Linux:
On Windows PowerShell:
Install the SDK with the requests extra:
The extra installs requests for the example. The SDK itself does not require it to build proxy settings. If your system uses python3 instead of python, use that command to create the environment.

2. Set your proxy credentials

Open the NodeMaven dashboard and go to Rotating Residential Proxy → Authenticated. Find your credentials under Proxy generator. Proxy Setup 1 Use the base proxy username for your main user or sub-user. Do not pass a generated username that already includes -country-, -sid-, or other settings: the SDK adds those parameters itself. Your dashboard sign-in email and password are different credentials. On macOS or Linux:
On Windows PowerShell:
These variables apply to programs started from the current terminal. A .env file is not loaded automatically by the SDK.

3. Send your first request

Save this as quickstart.py:
Run it:
The output contains the proxy’s public exit IP. For example:
This is illustrative output; your IP will be different. The request uses proxy traffic. If the returned address is your own public IP, check that your client is using the supplied proxy configuration. country="us" selects US exits. filter="medium" explicitly selects the filter used by the dashboard’s Quality mode. Creating the object alone does not send a request or reserve an IP.

Use a different HTTP client

These examples reuse proxy from the quickstart. Install the client you choose inside the same virtual environment.

httpx

Install httpx:
Use proxy=proxy.url() with this version of httpx. The SDK’s proxy.httpx() helper returns URL strings, not the transport objects expected by httpx’s mounts argument.

aiohttp

Install aiohttp:

Use Playwright

Install Playwright and its Chromium browser:
Save this as a separate script. It uses a sticky session so the browser can reuse one proxy identity:
proxy.playwright() returns server, username, and password separately. Pass those fields directly; do not percent-encode them yourself. Browser and HTTP-library requirements can be newer than the SDK’s Python requirement.

Choose the right output

URLs and client configuration dictionaries contain the real proxy password. Do not print them to shared logs.

Next steps

Source and issue tracker: nodemaven-python. Package: PyPI.