impit 0.9.0__cp313-cp313t-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
impit/py.typed ADDED
File without changes
@@ -0,0 +1,80 @@
1
+ Metadata-Version: 2.4
2
+ Name: impit
3
+ Version: 0.9.0
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: License :: OSI Approved :: Apache Software License
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Classifier: Topic :: Software Development :: Libraries
15
+ Summary: A library for making HTTP requests through browser impersonation
16
+ Keywords: apify,http,requests,browser,impersonation
17
+ Author: Jindřich Bär
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
20
+ Project-URL: Homepage, https://apify.github.io/impit/python
21
+ Project-URL: Apify homepage, https://apify.com
22
+ Project-URL: Changelog, https://github.com/apify/impit/blob/master/impit-python/CHANGELOG.md
23
+ Project-URL: Documentation, https://apify.github.io/impit/python
24
+ Project-URL: Issue tracker, https://github.com/apify/impit/issues
25
+ Project-URL: Repository, https://github.com/apify/impit
26
+
27
+ # `impit` for Python
28
+
29
+ > This documents the `impit` Python package, which provides bindings for the `impit` library.
30
+ >
31
+ > See documentation for the JavaScript/TypeScript version of `impit` [here](https://apify.github.io/impit/js/).
32
+
33
+ `impit` is a Python package that provides bindings for the [`impit`](https://github.com/apify/impit) library.
34
+
35
+ 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`.
36
+
37
+ ## Installation
38
+
39
+ ```bash
40
+ pip install impit
41
+ ```
42
+
43
+ ### Compatibility
44
+
45
+ | Operating System | Architecture | libc implementation | Prebuilt wheels available on PyPI |
46
+ |--|--|--|--|
47
+ | Linux | x86_64 | glibc | ✅ |
48
+ | Linux | x86_64 | musl | ✅ |
49
+ | macOS | x86_64 | N/A | ✅ |
50
+ | Windows | x86_64 | N/A | ✅ |
51
+ | macOS | arm64 | N/A | ✅ |
52
+ | Windows | arm64 | N/A | ✅ |
53
+ | Linux | arm64 | musl | ✅ |
54
+ | Linux | arm64 | glibc | ❌* |
55
+
56
+ *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.
57
+
58
+ ## Usage
59
+
60
+ ```python
61
+ import asyncio
62
+ from impit import AsyncClient
63
+
64
+ async def main():
65
+ impit = AsyncClient(http3=True, browser='firefox')
66
+
67
+ response = await impit.get(
68
+ "https://example.com",
69
+ );
70
+
71
+ print(response.status_code)
72
+ print(response.text)
73
+ print(response.http_version)
74
+
75
+ asyncio.run(main())
76
+ ```
77
+
78
+ Impit implements the HTTPX client interface, so you can use it as a drop-in replacement for `httpx.AsyncClient`.
79
+ Note that the implementation is partial and some features may not be supported yet.
80
+
@@ -0,0 +1,8 @@
1
+ impit-0.9.0.dist-info/METADATA,sha256=rUem-pBLg6yAp-5ARgqksLUOut5yrVmou21VKAv3Qy0,2833
2
+ impit-0.9.0.dist-info/WHEEL,sha256=6OTB-2VmasxQOGctmn4GHmNGm73umY-lAZrCsW-vFRI,106
3
+ impit/__init__.py,sha256=uZsD0XMFOt7QwVUgNcnVQkDF85y9n5slxoxR0wim7ug,1664
4
+ impit/cookies.py,sha256=bfNPkMk2Y0bG-RqqMMJxIfvCMZp_fDclYAnSlsCwkIg,7009
5
+ impit/impit.cpython-313t-darwin.so,sha256=lBGlkBFEtJi5I8AoL0VkbN6VzUHPd34NibVRF2HCzGE,6794592
6
+ impit/impit.pyi,sha256=IxLCuSkx3mHQcwcSS65lveoM5QYvMeJcU-Mhhdelyng,45730
7
+ impit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ impit-0.9.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.10.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313t-macosx_11_0_arm64