Primp is a Python library that provides a fast HTTP client capable of impersonating various web browsers by replicating their headers and TLS/JA3/JA4/HTTP2 fingerprints. It is implemented as a Python binding to the high-performance Rust `rquest` library. The current version is 1.2.2, and the project maintains an active release cadence with frequent updates.
pip install primpVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to create a `Client` with a specified browser impersonation profile and make a synchronous GET request. The example uses a public endpoint to test TLS fingerprinting.
Consult the project's GitHub releases page or documentation for changes relevant to your version upgrade.
Initialize your client with `primp.Client(impersonate="profile_name", impersonate_os="os_name")` for optimal results.
Upgrade your Python environment to version 3.10 or later.
Refer to the `deedy5/primp` GitHub repository and its Rust core documentation for advanced debugging.
Install the primp library using pip: `pip install primp`.
Ensure the Rust toolchain is installed (`curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`) and Python development headers are present (e.g., `sudo apt-get install python3-dev` on Debian/Ubuntu, `sudo yum install python3-devel` on CentOS/RHEL, or `brew install python` on macOS). Then, retry the installation.
Consult the `primp` documentation or examples to verify the correct method names and their usage (e.g., `client.get()`, `client.post()`, `resp.text`, `resp.json()`).
Use one of the supported impersonation profile strings as listed in the `primp` documentation (e.g., 'chrome_146', 'firefox_148', 'safari_26.3', 'edge', 'random'). Ensure correct casing and spelling.
No dependency data recorded yet.