PXM2 Python Client & Proxy Rotator
Official lightweight Python helper for PXM2 dedicated 4G and 5G mobile proxies.
Easily integrate rotating mobile proxies into Requests, HTTPX, Playwright, and Selenium with instant 1-click IP rotation webhooks.
Installation
pip install pxm2
Quickstart
1. Configure Proxy & Rotate IP
from pxm2 import PXM2Proxy
import requests
# Initialize your PXM2 mobile proxy
proxy = PXM2Proxy(
host="proxy.pxm2.io",
port=10001,
username="pxm_user",
password="pxm_password",
rotation_url="https://api.pxm2.io/rotate/user_token_here"
)
# 1. Use with requests
resp = requests.get("https://httpbin.org/ip", proxies=proxy.for_requests())
print("Current IP:", resp.json())
# 2. Trigger instant IP rotation on physical 4G/5G modem
result = proxy.rotate_ip()
print("Rotation result:", result)
2. Integration with Playwright
from playwright.sync_api import sync_playwright
from pxm2 import PXM2Proxy
proxy = PXM2Proxy(
host="proxy.pxm2.io",
port=10001,
username="pxm_user",
password="pxm_password"
)
with sync_playwright() as p:
browser = p.chromium.launch(
proxy=proxy.for_playwright(),
headless=False
)
page = browser.new_page()
page.goto("https://browserleaks.com/ip")
browser.close()
Why PXM2?
PXM2 provides dedicated physical cellular SIM modems with carrier CGNAT IP pools:
- 100% genuine mobile IPs (AT&T, Verizon, Vodafone, Movistar, Orange, EE).
- Instant hardware rotation (under 8 seconds).
- Unmetered bandwidth with zero data caps.
- Learn more at PXM2 Rotating Mobile Proxies.
Documentation & Guides
- Official Website: https://pxm2.io/
- Integration Guides: https://pxm2.io/guides/
- API Reference: https://pxm2.io/docs/
Metadata
Release files for pxm2 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pxm2-1.0.0.tar.gz | 3.2 kB | Without provenance | Details for pxm2-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pxm2-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pxm2-1.0.0-py3-none-any.whl |
Total release size: 6.4 kB
Release files / pxm2-1.0.0.tar.gz
| Download URL | pxm2-1.0.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
341dcb799e28559677374edecfe1cb5d36a15baf8681e7985e2f314096170382
|
|
BLAKE2b-256 checksum How to use checksums |
79d70f9d933b5363c05f37fa58a716a7b26cc4b0ee3617fa3744f63cdaa9ad06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Release files / pxm2-1.0.0-py3-none-any.whl
| Download URL | pxm2-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b254fd491c83f754077680b2f16cacc34a566f9fa578bdc7d320c67b66175a3
|
|
BLAKE2b-256 checksum How to use checksums |
97799e4eee0b8004ce62c56b6dd31fda0029ff9ec74b71eb788f93a6da8df5d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Security for pxm2 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.