ppc64le/linux/: impit-0.13.1 metadata and description
A library for making HTTP requests through browser impersonation
| author | Jindřich Bär |
| classifiers |
|
| description_content_type | text/markdown; charset=UTF-8; variant=GFM |
| keywords | apify,http,requests,browser,impersonation |
| license_file |
|
| metadata_version | 2.4 |
| project_urls |
|
| requires_python | >=3.10 |
| File | Tox results | History |
|---|---|---|
impit-0.13.1-cp310-cp310-manylinux_2_34_ppc64le.whl
|
|
|
impit-0.13.1-cp311-cp311-manylinux_2_34_ppc64le.whl
|
|
|
impit-0.13.1-cp312-cp312-manylinux_2_34_ppc64le.whl
|
|
|
impit-0.13.1-cp313-cp313-manylinux_2_34_ppc64le.whl
|
|
|
impit-0.13.1-cp314-cp314-manylinux_2_34_ppc64le.whl
|
|
# `impit` for Python
> This documents the `impit` Python package, which provides bindings for the `impit` library.
>
> See documentation for the JavaScript/TypeScript version of `impit` [here](https://apify.github.io/impit/js/).
`impit` is a Python package that provides bindings for the [`impit`](https://github.com/apify/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
```bash
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
```python
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.
Render warnings:
<string>:20: (WARNING/2) Line block ends without a blank line.
> This documents the `impit` Python package, which provides bindings for the `impit` library.
>
> See documentation for the JavaScript/TypeScript version of `impit` [here](https://apify.github.io/impit/js/).
`impit` is a Python package that provides bindings for the [`impit`](https://github.com/apify/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
```bash
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
```python
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.
Render warnings:
<string>:20: (WARNING/2) Line block ends without a blank line.