primp


Nameprimp JSON
Version 0.9.1 PyPI version JSON
download
home_pageNone
SummaryHTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints
upload_time2024-12-18 03:07:16
maintainerNone
docs_urlNone
authordeedy5
requires_python>=3.8
licenseMIT License
keywords python request impersonate
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Python >= 3.8](https://img.shields.io/badge/python->=3.8-red.svg) [![](https://badgen.net/github/release/deedy5/pyreqwest-impersonate)](https://github.com/deedy5/pyreqwest-impersonate/releases) [![](https://badge.fury.io/py/primp.svg)](https://pypi.org/project/primp) [![Downloads](https://static.pepy.tech/badge/primp/week)](https://pepy.tech/project/primp) [![CI](https://github.com/deedy5/pyreqwest-impersonate/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/deedy5/pyreqwest-impersonate/actions/workflows/CI.yml)
# 🪞PRIMP
**🪞PRIMP** = **P**ython **R**equests **IMP**ersonate

The fastest python HTTP client that can impersonate web browsers.</br>
Provides precompiled wheels:</br>
  * 🐧 linux: `amd64`, `aarch64`, `armv7` (⚠️aarch64 and armv7 builds are `manylinux_2_34` compatible - `ubuntu>=22.04`, `debian>=12`);</br>
  * 🐧 musllinux: `amd64`, `aarch64`;</br>
  * 🪟 windows: `amd64`;</br>
  * 🍏 macos: `amd64`, `aarch64`.</br>

## Table of Contents

- [Installation](#installation)
- [Benchmark](#benchmark)
- [Usage](#usage)
  - [I. Client](#i-client)
    - [Client methods](#client-methods)
    - [Response object](#response-object)
    - [Devices](#devices)
    - [Examples](#examples)
  - [II. AsyncClient](#ii-asyncclient)

## Installation

```python
pip install -U primp
```

## Benchmark

![](https://github.com/deedy5/primp/blob/main/benchmark.jpg?raw=true)

## Usage
### I. Client

HTTP client that can impersonate web browsers.
```python
class Client:
    """Initializes an HTTP client that can impersonate web browsers.

    Args:
        auth (tuple, optional): A tuple containing the username and password for basic authentication. Default is None.
        auth_bearer (str, optional): Bearer token for authentication. Default is None.
        params (dict, optional): Default query parameters to include in all requests. Default is None.
        headers (dict, optional): Default headers to send with requests. If `impersonate` is set, this will be ignored.
        cookies (dict, optional): - An optional map of cookies to send with requests as the `Cookie` header.
        timeout (float, optional): HTTP request timeout in seconds. Default is 30.
        cookie_store (bool, optional): Enable a persistent cookie store. Received cookies will be preserved and included
            in additional requests. Default is True.
        referer (bool, optional): Enable or disable automatic setting of the `Referer` header. Default is True.
        proxy (str, optional): Proxy URL for HTTP requests. Example: "socks5://127.0.0.1:9150". Default is None.
        impersonate (str, optional): Entity to impersonate. Example: "chrome_124". Default is None.
            Chrome: "chrome_100","chrome_101","chrome_104","chrome_105","chrome_106","chrome_107","chrome_108",
                "chrome_109","chrome_114","chrome_116","chrome_117","chrome_118","chrome_119","chrome_120",
                "chrome_123","chrome_124","chrome_126","chrome_127","chrome_128","chrome_129","chrome_130",
                "chrome_131"
            Safari: "safari_ios_16.5","safari_ios_17.2","safari_ios_17.4.1","safari_15.3","safari_15.5","safari_15.6.1",
                "safari_16","safari_16.5","safari_17.0","safari_17.2.1","safari_17.4.1","safari_17.5","safari_18",
                "safari_18.1.1","safari_18.2","safari_ipad_18"
            OkHttp: "okhttp_3.9","okhttp_3.11","okhttp_3.13","okhttp_3.14","okhttp_4.9","okhttp_4.10","okhttp_5"
            Edge: "edge_101","edge_122","edge_127","edge_131"
        follow_redirects (bool, optional): Whether to follow redirects. Default is True.
        max_redirects (int, optional): Maximum redirects to follow. Default 20. Applies if `follow_redirects` is True.
        verify (bool, optional): Verify SSL certificates. Default is True.
        ca_cert_file (str, optional): Path to CA certificate store. Default is None.
        https_only`: Restrict the Client to be used with HTTPS only requests. Default is `false`.
        http2_only`: If true - use only HTTP/2; if false - use only HTTP/1. Default is `false`.

    """
```

#### Client methods

The `Client` class provides a set of methods for making HTTP requests: `get`, `head`, `options`, `delete`, `post`, `put`, `patch`, each of which internally utilizes the `request()` method for execution. The parameters for these methods closely resemble those in `httpx`.
```python
def get(
    url: str,
    params: Optional[Dict[str, str]] = None,
    headers: Optional[Dict[str, str]] = None,
    cookies: Optional[Dict[str, str]] = None,
    auth: Optional[Tuple[str, Optional[str]]] = None,
    auth_bearer: Optional[str] = None,
    timeout: Optional[float] = 30,
):
    """Performs a GET request to the specified URL.

    Args:
        url (str): The URL to which the request will be made.
        params (Optional[Dict[str, str]]): A map of query parameters to append to the URL. Default is None.
        headers (Optional[Dict[str, str]]): A map of HTTP headers to send with the request. Default is None.
        cookies (Optional[Dict[str, str]]): - An optional map of cookies to send with requests as the `Cookie` header.
        auth (Optional[Tuple[str, Optional[str]]]): A tuple containing the username and an optional password
            for basic authentication. Default is None.
        auth_bearer (Optional[str]): A string representing the bearer token for bearer token authentication. Default is None.
        timeout (Optional[float]): The timeout for the request in seconds. Default is 30.

    """
```
```python
def post(
    url: str,
    params: Optional[Dict[str, str]] = None,
    headers: Optional[Dict[str, str]] = None,
    cookies: Optional[Dict[str, str]] = None,
    content: Optional[bytes] = None,
    data: Optional[Dict[str, str]] = None,
    json: Any = None,
    files: Optional[Dict[str, bytes]] = None,
    auth: Optional[Tuple[str, Optional[str]]] = None,
    auth_bearer: Optional[str] = None,
    timeout: Optional[float] = 30,
):
    """Performs a POST request to the specified URL.

    Args:
        url (str): The URL to which the request will be made.
        params (Optional[Dict[str, str]]): A map of query parameters to append to the URL. Default is None.
        headers (Optional[Dict[str, str]]): A map of HTTP headers to send with the request. Default is None.
        cookies (Optional[Dict[str, str]]): - An optional map of cookies to send with requests as the `Cookie` header.
        content (Optional[bytes]): The content to send in the request body as bytes. Default is None.
        data (Optional[Dict[str, str]]): The form data to send in the request body. Default is None.
        json (Any): A JSON serializable object to send in the request body. Default is None.
        files (Optional[Dict[str, bytes]]): A map of file fields to file contents to be sent as multipart/form-data. Default is None.
        auth (Optional[Tuple[str, Optional[str]]]): A tuple containing the username and an optional password
            for basic authentication. Default is None.
        auth_bearer (Optional[str]): A string representing the bearer token for bearer token authentication. Default is None.
        timeout (Optional[float]): The timeout for the request in seconds. Default is 30.

    """
```
#### Response object
```python
resp.content
resp.cookies
resp.encoding
resp.headers
resp.json()
resp.status_code
resp.text
resp.text_markdown  # html is converted to markdown text
resp.text_plain  # html is converted to plain text
resp.text_rich  # html is converted to rich text
resp.url
```

#### Devices

- Chrome: `chrome_100`,`chrome_101`,`chrome_104`,`chrome_105`,`chrome_106`,`chrome_107`,`chrome_108`,`chrome_109`,`chrome_114`,`chrome_116`,`chrome_117`,`chrome_118`,`chrome_119`,`chrome_120`,`chrome_123`,`chrome_124`,`chrome_126`,`chrome_127`,`chrome_128`,`chrome_129`,`chrome_130`,`chrome_131`

- Edge: `edge_101`,`edge_122`,`edge_127`, `edge_131`

- Safari: `safari_ios_17.2`,`safari_ios_17.4.1`,`safari_ios_16.5`,`safari_15.3`,`safari_15.5`,`safari_15.6.1`,`safari_16`,`safari_16.5`,`safari_17.0`,`safari_17.2.1`,`safari_17.4.1`,`safari_17.5`,`safari_18`,`safari_18.1.1`, `safari_18.2`, `safari_ipad_18`

- OkHttp: `okhttp_3.9`,`okhttp_3.11`,`okhttp_3.13`,`okhttp_3.14`,`okhttp_4.9`,`okhttp_4.10`,`okhttp_5`

#### Examples

```python
import primp

# Impersonate
client = primp.Client(impersonate="chrome_131")  # chrome_131

# GET request
resp = client.get("https://tls.peet.ws/api/all")
print(resp.json())

# GET request with passing params and setting timeout
params = {"param1": "value1", "param2": "value2"}
resp = client.post(url="https://httpbin.org/anything", params=params, timeout=10)
print(r.text)

# POST Binary Request Data
content = b"some_data"
resp = client.post(url="https://httpbin.org/anything", content=content)
print(r.text)

# POST Form Encoded Data
data = {"key1": "value1", "key2": "value2"}
resp = client.post(url="https://httpbin.org/anything", data=data)
print(r.text)

# POST JSON Encoded Data
json = {"key1": "value1", "key2": "value2"}
resp = client.post(url="https://httpbin.org/anything", json=json)
print(r.text)

# POST Multipart-Encoded Files
files = {'file1': open('file1.txt', 'rb').read(), 'file2': open('file2.txt', 'rb').read()}
r = client.post("https://httpbin.org/post", files=files)
print(r.text)

# Authentication using user/password
auth = ("user", "password")
resp = client.post(url="https://httpbin.org/anything", auth=auth)
print(r.text)

# Authentication using auth bearer
auth_bearer = "bearerXXXXXXXXXXXXXXXXXXXX"
resp = client.post(url="https://httpbin.org/anything", auth_bearer=auth_bearer)
print(r.text)

# Using proxy or env var PRIMP_PROXY
resp = primp.Client(proxy="http://127.0.0.1:8080").get("https://tls.peet.ws/api/all")
print(resp.json())
export PRIMP_PROXY="socks5://127.0.0.1:1080"
resp = primp.Client().get("https://tls.peet.ws/api/all")
print(resp.json())

# Using custom CA certificate store: env var PRIMP_CA_BUNDLE
#(Primp built with the Mozilla's latest trusted root certificates, so maybe it's not necessary)
resp = primp.Client(ca_cert_file="/cert/cacert.pem").get("https://tls.peet.ws/api/all")
print(resp.json())
resp = primp.Client(ca_cert_file=certifi.where()).get("https://tls.peet.ws/api/all")
print(resp.json())
export PRIMP_CA_BUNDLE="/home/user/Downloads/cert.pem"
resp = primp.Client().get("https://tls.peet.ws/api/all")
print(resp.json())

# You can also use convenience functions that use a default Client instance under the hood:
# primp.get() | primp.head() | primp.options() | primp.delete() | primp.post() | primp.patch() | primp.put()
# These functions can accept the `impersonate` parameter:
resp = primp.get("https://httpbin.org/anything", impersonate="chrome_131")
print(r.text)
```

### II. AsyncClient

TODO


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "primp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "python, request, impersonate",
    "author": "deedy5",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/70/d9/421614a9b7bdc0d6b87c1efea0abc9137a10be10876e9cc8837616cac4cf/primp-0.9.1.tar.gz",
    "platform": null,
    "description": "![Python >= 3.8](https://img.shields.io/badge/python->=3.8-red.svg) [![](https://badgen.net/github/release/deedy5/pyreqwest-impersonate)](https://github.com/deedy5/pyreqwest-impersonate/releases) [![](https://badge.fury.io/py/primp.svg)](https://pypi.org/project/primp) [![Downloads](https://static.pepy.tech/badge/primp/week)](https://pepy.tech/project/primp) [![CI](https://github.com/deedy5/pyreqwest-impersonate/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/deedy5/pyreqwest-impersonate/actions/workflows/CI.yml)\n# \ud83e\ude9ePRIMP\n**\ud83e\ude9ePRIMP** = **P**ython **R**equests **IMP**ersonate\n\nThe fastest python HTTP client that can impersonate web browsers.</br>\nProvides precompiled wheels:</br>\n  * \ud83d\udc27 linux: `amd64`, `aarch64`, `armv7` (\u26a0\ufe0faarch64 and armv7 builds are `manylinux_2_34` compatible - `ubuntu>=22.04`, `debian>=12`);</br>\n  * \ud83d\udc27 musllinux: `amd64`, `aarch64`;</br>\n  * \ud83e\ude9f windows: `amd64`;</br>\n  * \ud83c\udf4f macos: `amd64`, `aarch64`.</br>\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Benchmark](#benchmark)\n- [Usage](#usage)\n  - [I. Client](#i-client)\n    - [Client methods](#client-methods)\n    - [Response object](#response-object)\n    - [Devices](#devices)\n    - [Examples](#examples)\n  - [II. AsyncClient](#ii-asyncclient)\n\n## Installation\n\n```python\npip install -U primp\n```\n\n## Benchmark\n\n![](https://github.com/deedy5/primp/blob/main/benchmark.jpg?raw=true)\n\n## Usage\n### I. Client\n\nHTTP client that can impersonate web browsers.\n```python\nclass Client:\n    \"\"\"Initializes an HTTP client that can impersonate web browsers.\n\n    Args:\n        auth (tuple, optional): A tuple containing the username and password for basic authentication. Default is None.\n        auth_bearer (str, optional): Bearer token for authentication. Default is None.\n        params (dict, optional): Default query parameters to include in all requests. Default is None.\n        headers (dict, optional): Default headers to send with requests. If `impersonate` is set, this will be ignored.\n        cookies (dict, optional): - An optional map of cookies to send with requests as the `Cookie` header.\n        timeout (float, optional): HTTP request timeout in seconds. Default is 30.\n        cookie_store (bool, optional): Enable a persistent cookie store. Received cookies will be preserved and included\n            in additional requests. Default is True.\n        referer (bool, optional): Enable or disable automatic setting of the `Referer` header. Default is True.\n        proxy (str, optional): Proxy URL for HTTP requests. Example: \"socks5://127.0.0.1:9150\". Default is None.\n        impersonate (str, optional): Entity to impersonate. Example: \"chrome_124\". Default is None.\n            Chrome: \"chrome_100\",\"chrome_101\",\"chrome_104\",\"chrome_105\",\"chrome_106\",\"chrome_107\",\"chrome_108\",\n                \"chrome_109\",\"chrome_114\",\"chrome_116\",\"chrome_117\",\"chrome_118\",\"chrome_119\",\"chrome_120\",\n                \"chrome_123\",\"chrome_124\",\"chrome_126\",\"chrome_127\",\"chrome_128\",\"chrome_129\",\"chrome_130\",\n                \"chrome_131\"\n            Safari: \"safari_ios_16.5\",\"safari_ios_17.2\",\"safari_ios_17.4.1\",\"safari_15.3\",\"safari_15.5\",\"safari_15.6.1\",\n                \"safari_16\",\"safari_16.5\",\"safari_17.0\",\"safari_17.2.1\",\"safari_17.4.1\",\"safari_17.5\",\"safari_18\",\n                \"safari_18.1.1\",\"safari_18.2\",\"safari_ipad_18\"\n            OkHttp: \"okhttp_3.9\",\"okhttp_3.11\",\"okhttp_3.13\",\"okhttp_3.14\",\"okhttp_4.9\",\"okhttp_4.10\",\"okhttp_5\"\n            Edge: \"edge_101\",\"edge_122\",\"edge_127\",\"edge_131\"\n        follow_redirects (bool, optional): Whether to follow redirects. Default is True.\n        max_redirects (int, optional): Maximum redirects to follow. Default 20. Applies if `follow_redirects` is True.\n        verify (bool, optional): Verify SSL certificates. Default is True.\n        ca_cert_file (str, optional): Path to CA certificate store. Default is None.\n        https_only`: Restrict the Client to be used with HTTPS only requests. Default is `false`.\n        http2_only`: If true - use only HTTP/2; if false - use only HTTP/1. Default is `false`.\n\n    \"\"\"\n```\n\n#### Client methods\n\nThe `Client` class provides a set of methods for making HTTP requests: `get`, `head`, `options`, `delete`, `post`, `put`, `patch`, each of which internally utilizes the `request()` method for execution. The parameters for these methods closely resemble those in `httpx`.\n```python\ndef get(\n    url: str,\n    params: Optional[Dict[str, str]] = None,\n    headers: Optional[Dict[str, str]] = None,\n    cookies: Optional[Dict[str, str]] = None,\n    auth: Optional[Tuple[str, Optional[str]]] = None,\n    auth_bearer: Optional[str] = None,\n    timeout: Optional[float] = 30,\n):\n    \"\"\"Performs a GET request to the specified URL.\n\n    Args:\n        url (str): The URL to which the request will be made.\n        params (Optional[Dict[str, str]]): A map of query parameters to append to the URL. Default is None.\n        headers (Optional[Dict[str, str]]): A map of HTTP headers to send with the request. Default is None.\n        cookies (Optional[Dict[str, str]]): - An optional map of cookies to send with requests as the `Cookie` header.\n        auth (Optional[Tuple[str, Optional[str]]]): A tuple containing the username and an optional password\n            for basic authentication. Default is None.\n        auth_bearer (Optional[str]): A string representing the bearer token for bearer token authentication. Default is None.\n        timeout (Optional[float]): The timeout for the request in seconds. Default is 30.\n\n    \"\"\"\n```\n```python\ndef post(\n    url: str,\n    params: Optional[Dict[str, str]] = None,\n    headers: Optional[Dict[str, str]] = None,\n    cookies: Optional[Dict[str, str]] = None,\n    content: Optional[bytes] = None,\n    data: Optional[Dict[str, str]] = None,\n    json: Any = None,\n    files: Optional[Dict[str, bytes]] = None,\n    auth: Optional[Tuple[str, Optional[str]]] = None,\n    auth_bearer: Optional[str] = None,\n    timeout: Optional[float] = 30,\n):\n    \"\"\"Performs a POST request to the specified URL.\n\n    Args:\n        url (str): The URL to which the request will be made.\n        params (Optional[Dict[str, str]]): A map of query parameters to append to the URL. Default is None.\n        headers (Optional[Dict[str, str]]): A map of HTTP headers to send with the request. Default is None.\n        cookies (Optional[Dict[str, str]]): - An optional map of cookies to send with requests as the `Cookie` header.\n        content (Optional[bytes]): The content to send in the request body as bytes. Default is None.\n        data (Optional[Dict[str, str]]): The form data to send in the request body. Default is None.\n        json (Any): A JSON serializable object to send in the request body. Default is None.\n        files (Optional[Dict[str, bytes]]): A map of file fields to file contents to be sent as multipart/form-data. Default is None.\n        auth (Optional[Tuple[str, Optional[str]]]): A tuple containing the username and an optional password\n            for basic authentication. Default is None.\n        auth_bearer (Optional[str]): A string representing the bearer token for bearer token authentication. Default is None.\n        timeout (Optional[float]): The timeout for the request in seconds. Default is 30.\n\n    \"\"\"\n```\n#### Response object\n```python\nresp.content\nresp.cookies\nresp.encoding\nresp.headers\nresp.json()\nresp.status_code\nresp.text\nresp.text_markdown  # html is converted to markdown text\nresp.text_plain  # html is converted to plain text\nresp.text_rich  # html is converted to rich text\nresp.url\n```\n\n#### Devices\n\n- Chrome: `chrome_100`\uff0c`chrome_101`\uff0c`chrome_104`\uff0c`chrome_105`\uff0c`chrome_106`\uff0c`chrome_107`\uff0c`chrome_108`\uff0c`chrome_109`\uff0c`chrome_114`\uff0c`chrome_116`\uff0c`chrome_117`\uff0c`chrome_118`\uff0c`chrome_119`\uff0c`chrome_120`\uff0c`chrome_123`\uff0c`chrome_124`\uff0c`chrome_126`\uff0c`chrome_127`\uff0c`chrome_128`\uff0c`chrome_129`\uff0c`chrome_130`\uff0c`chrome_131`\n\n- Edge: `edge_101`\uff0c`edge_122`\uff0c`edge_127`, `edge_131`\n\n- Safari: `safari_ios_17.2`\uff0c`safari_ios_17.4.1`\uff0c`safari_ios_16.5`\uff0c`safari_15.3`\uff0c`safari_15.5`\uff0c`safari_15.6.1`\uff0c`safari_16`\uff0c`safari_16.5`\uff0c`safari_17.0`\uff0c`safari_17.2.1`\uff0c`safari_17.4.1`\uff0c`safari_17.5`\uff0c`safari_18`\uff0c`safari_18.1.1`, `safari_18.2`, `safari_ipad_18`\n\n- OkHttp: `okhttp_3.9`\uff0c`okhttp_3.11`\uff0c`okhttp_3.13`\uff0c`okhttp_3.14`\uff0c`okhttp_4.9`\uff0c`okhttp_4.10`\uff0c`okhttp_5`\n\n#### Examples\n\n```python\nimport primp\n\n# Impersonate\nclient = primp.Client(impersonate=\"chrome_131\")  # chrome_131\n\n# GET request\nresp = client.get(\"https://tls.peet.ws/api/all\")\nprint(resp.json())\n\n# GET request with passing params and setting timeout\nparams = {\"param1\": \"value1\", \"param2\": \"value2\"}\nresp = client.post(url=\"https://httpbin.org/anything\", params=params, timeout=10)\nprint(r.text)\n\n# POST Binary Request Data\ncontent = b\"some_data\"\nresp = client.post(url=\"https://httpbin.org/anything\", content=content)\nprint(r.text)\n\n# POST Form Encoded Data\ndata = {\"key1\": \"value1\", \"key2\": \"value2\"}\nresp = client.post(url=\"https://httpbin.org/anything\", data=data)\nprint(r.text)\n\n# POST JSON Encoded Data\njson = {\"key1\": \"value1\", \"key2\": \"value2\"}\nresp = client.post(url=\"https://httpbin.org/anything\", json=json)\nprint(r.text)\n\n# POST Multipart-Encoded Files\nfiles = {'file1': open('file1.txt', 'rb').read(), 'file2': open('file2.txt', 'rb').read()}\nr = client.post(\"https://httpbin.org/post\", files=files)\nprint(r.text)\n\n# Authentication using user/password\nauth = (\"user\", \"password\")\nresp = client.post(url=\"https://httpbin.org/anything\", auth=auth)\nprint(r.text)\n\n# Authentication using auth bearer\nauth_bearer = \"bearerXXXXXXXXXXXXXXXXXXXX\"\nresp = client.post(url=\"https://httpbin.org/anything\", auth_bearer=auth_bearer)\nprint(r.text)\n\n# Using proxy or env var PRIMP_PROXY\nresp = primp.Client(proxy=\"http://127.0.0.1:8080\").get(\"https://tls.peet.ws/api/all\")\nprint(resp.json())\nexport PRIMP_PROXY=\"socks5://127.0.0.1:1080\"\nresp = primp.Client().get(\"https://tls.peet.ws/api/all\")\nprint(resp.json())\n\n# Using custom CA certificate store: env var PRIMP_CA_BUNDLE\n#(Primp built with the Mozilla's latest trusted root certificates, so maybe it's not necessary)\nresp = primp.Client(ca_cert_file=\"/cert/cacert.pem\").get(\"https://tls.peet.ws/api/all\")\nprint(resp.json())\nresp = primp.Client(ca_cert_file=certifi.where()).get(\"https://tls.peet.ws/api/all\")\nprint(resp.json())\nexport PRIMP_CA_BUNDLE=\"/home/user/Downloads/cert.pem\"\nresp = primp.Client().get(\"https://tls.peet.ws/api/all\")\nprint(resp.json())\n\n# You can also use convenience functions that use a default Client instance under the hood:\n# primp.get() | primp.head() | primp.options() | primp.delete() | primp.post() | primp.patch() | primp.put()\n# These functions can accept the `impersonate` parameter:\nresp = primp.get(\"https://httpbin.org/anything\", impersonate=\"chrome_131\")\nprint(r.text)\n```\n\n### II. AsyncClient\n\nTODO\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints",
    "version": "0.9.1",
    "project_urls": null,
    "split_keywords": [
        "python",
        " request",
        " impersonate"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6dd594700498b73ad3cc4d85f0dc8e1d1cac84a7ffcc1ca525da80d985012948",
                "md5": "12acf23d354d6b09544fc5a3a426b540",
                "sha256": "4204cd36454168c2fb50cfbc124eb08abc8dd54a70be31522aa0f83aec1c1df9"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "12acf23d354d6b09544fc5a3a426b540",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2873996,
            "upload_time": "2024-12-18T03:07:10",
            "upload_time_iso_8601": "2024-12-18T03:07:10.536103Z",
            "url": "https://files.pythonhosted.org/packages/6d/d5/94700498b73ad3cc4d85f0dc8e1d1cac84a7ffcc1ca525da80d985012948/primp-0.9.1-cp38-abi3-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e56c36b586887c39968c0c5f670248f23e94ab62fa1a0e5c108fc93ee0d0984e",
                "md5": "89ce35d1b40be23350ab82cb02d61457",
                "sha256": "bdc7c77edd51e3da675f58a7c6c1e2d6c80a72bc519529143a27f45e24de7759"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "89ce35d1b40be23350ab82cb02d61457",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2698023,
            "upload_time": "2024-12-18T03:07:08",
            "upload_time_iso_8601": "2024-12-18T03:07:08.573906Z",
            "url": "https://files.pythonhosted.org/packages/e5/6c/36b586887c39968c0c5f670248f23e94ab62fa1a0e5c108fc93ee0d0984e/primp-0.9.1-cp38-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b8433ed6cc5a25b3bd54cb8e1caf6389ddf08e24a0866b2e348dc7a28f0a3014",
                "md5": "92a5c45c1d38dbd342a16808e58a25e8",
                "sha256": "eb93dd24f1b96ebf94501a4e5d2ee74c53b7a24fd25fc72806453cdd62116094"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "92a5c45c1d38dbd342a16808e58a25e8",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2992544,
            "upload_time": "2024-12-18T03:07:05",
            "upload_time_iso_8601": "2024-12-18T03:07:05.693380Z",
            "url": "https://files.pythonhosted.org/packages/b8/43/3ed6cc5a25b3bd54cb8e1caf6389ddf08e24a0866b2e348dc7a28f0a3014/primp-0.9.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "923189d4f3382bf98bba7a3f8b6732ed6be2c0852278bd34fc07a3d4ff6c5298",
                "md5": "df3daf95a3e1c1c82694aa88143cb51d",
                "sha256": "035e134b33195e6a4b8e46ad56c929543ab758c3f373d5277017eb53ba60101d"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-manylinux_2_34_aarch64.whl",
            "has_sig": false,
            "md5_digest": "df3daf95a3e1c1c82694aa88143cb51d",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2902645,
            "upload_time": "2024-12-18T03:06:58",
            "upload_time_iso_8601": "2024-12-18T03:06:58.357632Z",
            "url": "https://files.pythonhosted.org/packages/92/31/89d4f3382bf98bba7a3f8b6732ed6be2c0852278bd34fc07a3d4ff6c5298/primp-0.9.1-cp38-abi3-manylinux_2_34_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "05cee6598d2905ccab18fbe1a111ab455eea101c8d36a1c9ec23c6cb303017db",
                "md5": "424c27b2cea5543b850015b92c356e2a",
                "sha256": "d38c29116c87d71951214fbd06b9f61c55a8ab0c62b7ea926565f8de7fbcdd87"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-manylinux_2_34_armv7l.whl",
            "has_sig": false,
            "md5_digest": "424c27b2cea5543b850015b92c356e2a",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2696856,
            "upload_time": "2024-12-18T03:07:01",
            "upload_time_iso_8601": "2024-12-18T03:07:01.553161Z",
            "url": "https://files.pythonhosted.org/packages/05/ce/e6598d2905ccab18fbe1a111ab455eea101c8d36a1c9ec23c6cb303017db/primp-0.9.1-cp38-abi3-manylinux_2_34_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "29c8585557ca41b44d8e4752fdcc1ff5af518cdcbacc2704471340ec05fe4362",
                "md5": "0f0458d4349707a28e8a1a1101a57896",
                "sha256": "9eaa20ff6c0157aa9d2925decbf09fc915b2084fc0e8c2eeba125b2f99ac2a41"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-musllinux_1_2_aarch64.whl",
            "has_sig": false,
            "md5_digest": "0f0458d4349707a28e8a1a1101a57896",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 3061267,
            "upload_time": "2024-12-18T03:07:12",
            "upload_time_iso_8601": "2024-12-18T03:07:12.236715Z",
            "url": "https://files.pythonhosted.org/packages/29/c8/585557ca41b44d8e4752fdcc1ff5af518cdcbacc2704471340ec05fe4362/primp-0.9.1-cp38-abi3-musllinux_1_2_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d46687a3c8b6b19c4bc0297b01f63d3308752e2696654b4d37ab519217e04720",
                "md5": "d78e81c9f803544bc942e727ddadd237",
                "sha256": "8b4fdc844e096025fa36c175390c298b71bd9495e9a1c4986afb198557793b54"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d78e81c9f803544bc942e727ddadd237",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 3234469,
            "upload_time": "2024-12-18T03:07:14",
            "upload_time_iso_8601": "2024-12-18T03:07:14.836988Z",
            "url": "https://files.pythonhosted.org/packages/d4/66/87a3c8b6b19c4bc0297b01f63d3308752e2696654b4d37ab519217e04720/primp-0.9.1-cp38-abi3-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5b835b7639dc486e9f93e6e35445b4b2794c091643de1e2953bf575302404511",
                "md5": "6ae6657369691eb0fd5590b6990f3620",
                "sha256": "36996df75c24b8fca669041d0d636e84c8d67cad86c8e94ccb80884f08b2984b"
            },
            "downloads": -1,
            "filename": "primp-0.9.1-cp38-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "6ae6657369691eb0fd5590b6990f3620",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 2919463,
            "upload_time": "2024-12-18T03:07:17",
            "upload_time_iso_8601": "2024-12-18T03:07:17.557659Z",
            "url": "https://files.pythonhosted.org/packages/5b/83/5b7639dc486e9f93e6e35445b4b2794c091643de1e2953bf575302404511/primp-0.9.1-cp38-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "70d9421614a9b7bdc0d6b87c1efea0abc9137a10be10876e9cc8837616cac4cf",
                "md5": "31d3fcd9df277c65b7e55ffb1959bef3",
                "sha256": "961b4791b855d30673d68891c574928a585794c5c1fd4474e5429988d74866cc"
            },
            "downloads": -1,
            "filename": "primp-0.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "31d3fcd9df277c65b7e55ffb1959bef3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 82654,
            "upload_time": "2024-12-18T03:07:16",
            "upload_time_iso_8601": "2024-12-18T03:07:16.474605Z",
            "url": "https://files.pythonhosted.org/packages/70/d9/421614a9b7bdc0d6b87c1efea0abc9137a10be10876e9cc8837616cac4cf/primp-0.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-18 03:07:16",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "primp"
}
        
Elapsed time: 0.42871s