A library for making HTTP requests through browser impersonation
Project Links
Meta
Author: Jindřich Bär
Requires Python: >=3.10
Classifiers
Development Status
- 4 - Beta
Environment
- Console
Intended Audience
- Developers
License
- OSI Approved :: Apache Software License
Operating System
- OS Independent
Programming Language
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
Topic
- Software Development :: Libraries
impit for Python
This documents the
impitPython package, which provides bindings for theimpitlibrary.See documentation for the JavaScript/TypeScript version of
impithere.
impit is a Python package that provides bindings for the impit library.
It allows you to switch the TLS fingerprints and the HTTP headers of your requests, while still using the same API as httpx or requests.
Installation
pip install impit
Compatibility
| Operating System | Architecture | libc implementation | Prebuilt wheels available on PyPI |
|---|---|---|---|
| Linux | x86_64 | glibc | ✅ |
| Linux | x86_64 | musl | ✅ |
| macOS | x86_64 | N/A | ✅ |
| Windows | x86_64 | N/A | ✅ |
| macOS | arm64 | N/A | ✅ |
| Windows | arm64 | N/A | ✅ |
| Linux | arm64 | musl | ✅ |
| Linux | arm64 | glibc | ❌* |
*The prebuilt binaries for Linux on arm64 with glibc are WIP and not available as prebuilt wheels on PyPI yet. You can build the package from sources in this repository.
Usage
import asyncio
from impit import AsyncClient
async def main():
impit = AsyncClient(http3=True, browser='firefox')
response = await impit.get(
"https://example.com",
);
print(response.status_code)
print(response.text)
print(response.http_version)
asyncio.run(main())
Impit implements the HTTPX client interface, so you can use it as a drop-in replacement for httpx.AsyncClient.
Note that the implementation is partial and some features may not be supported yet.
0.12.0
Mar 06, 2026
0.11.0
Feb 11, 2026
0.9.3
Nov 26, 2025
0.9.2
Nov 13, 2025
0.9.1
Nov 13, 2025
0.9.0
Nov 11, 2025
0.8.0
Oct 22, 2025
0.7.3
Oct 17, 2025
0.7.1
Sep 08, 2025
0.6.1
Sep 03, 2025
0.6.0
Sep 02, 2025
0.5.4
Aug 26, 2025
0.5.3
Aug 13, 2025
0.5.2
Aug 11, 2025
0.5.1
Aug 05, 2025
0.5.0
Jul 30, 2025
0.4.2
Jul 23, 2025
0.4.0
Jul 07, 2025
0.3.0
Jun 25, 2025
0.2.3
May 09, 2025
0.2.2
May 07, 2025
0.2.1
Apr 26, 2025
0.2.0
Apr 10, 2025
0.1.0
Mar 02, 2025
0.0.1
Jan 10, 2025
Wheel compatibility matrix
Files in release
impit-0.12.0-cp310-cp310-macosx_10_12_x86_64.whl (3.6MiB)
impit-0.12.0-cp310-cp310-macosx_11_0_arm64.whl (3.5MiB)
impit-0.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8MiB)
impit-0.12.0-cp310-cp310-manylinux_2_28_aarch64.whl (3.7MiB)
impit-0.12.0-cp310-cp310-musllinux_1_2_aarch64.whl (3.9MiB)
impit-0.12.0-cp310-cp310-musllinux_1_2_x86_64.whl (4.0MiB)
impit-0.12.0-cp310-cp310-win_amd64.whl (3.5MiB)
impit-0.12.0-cp311-cp311-macosx_10_12_x86_64.whl (3.6MiB)
impit-0.12.0-cp311-cp311-macosx_11_0_arm64.whl (3.5MiB)
impit-0.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8MiB)
impit-0.12.0-cp311-cp311-manylinux_2_28_aarch64.whl (3.7MiB)
impit-0.12.0-cp311-cp311-musllinux_1_2_aarch64.whl (3.9MiB)
impit-0.12.0-cp311-cp311-musllinux_1_2_x86_64.whl (4.0MiB)
impit-0.12.0-cp311-cp311-win_amd64.whl (3.5MiB)
impit-0.12.0-cp312-cp312-macosx_10_12_x86_64.whl (3.6MiB)
impit-0.12.0-cp312-cp312-macosx_11_0_arm64.whl (3.5MiB)
impit-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8MiB)
impit-0.12.0-cp312-cp312-manylinux_2_28_aarch64.whl (3.7MiB)
impit-0.12.0-cp312-cp312-musllinux_1_2_aarch64.whl (3.9MiB)
impit-0.12.0-cp312-cp312-musllinux_1_2_x86_64.whl (4.0MiB)
impit-0.12.0-cp312-cp312-win_amd64.whl (3.5MiB)
impit-0.12.0-cp313-cp313-macosx_10_12_x86_64.whl (3.6MiB)
impit-0.12.0-cp313-cp313-macosx_11_0_arm64.whl (3.5MiB)
impit-0.12.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8MiB)
impit-0.12.0-cp313-cp313-manylinux_2_28_aarch64.whl (3.7MiB)
impit-0.12.0-cp313-cp313-musllinux_1_2_aarch64.whl (3.9MiB)
impit-0.12.0-cp313-cp313-musllinux_1_2_x86_64.whl (4.0MiB)
impit-0.12.0-cp313-cp313-win_amd64.whl (3.5MiB)
impit-0.12.0-cp313-cp313t-macosx_10_12_x86_64.whl (3.6MiB)
impit-0.12.0-cp313-cp313t-macosx_11_0_arm64.whl (3.5MiB)
impit-0.12.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8MiB)
impit-0.12.0-cp313-cp313t-manylinux_2_28_aarch64.whl (3.7MiB)
impit-0.12.0-cp313-cp313t-musllinux_1_2_aarch64.whl (3.9MiB)
impit-0.12.0-cp313-cp313t-musllinux_1_2_x86_64.whl (4.0MiB)
impit-0.12.0-cp314-cp314-macosx_10_12_x86_64.whl (3.6MiB)
impit-0.12.0-cp314-cp314-macosx_11_0_arm64.whl (3.5MiB)
impit-0.12.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8MiB)
impit-0.12.0-cp314-cp314-manylinux_2_28_aarch64.whl (3.7MiB)
impit-0.12.0-cp314-cp314-musllinux_1_2_aarch64.whl (3.9MiB)
impit-0.12.0-cp314-cp314-musllinux_1_2_x86_64.whl (4.0MiB)
impit-0.12.0-cp314-cp314-win_amd64.whl (3.5MiB)
impit-0.12.0-cp314-cp314t-macosx_10_12_x86_64.whl (3.6MiB)
impit-0.12.0-cp314-cp314t-macosx_11_0_arm64.whl (3.5MiB)
impit-0.12.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8MiB)
impit-0.12.0-cp314-cp314t-manylinux_2_28_aarch64.whl (3.7MiB)
impit-0.12.0-cp314-cp314t-musllinux_1_2_aarch64.whl (3.9MiB)
impit-0.12.0-cp314-cp314t-musllinux_1_2_x86_64.whl (4.0MiB)
impit-0.12.0.tar.gz (145.1KiB)
No dependencies