Repository navigation
impit-python@0.3.0
Features
-
Show the underlying
reqwesterror on unrecognized error type (#183)- Improve error logs in bindings by tunneling the lower-level
reqwesterrors through to binding users.
- Improve error logs in bindings by tunneling the lower-level
-
Support
socksproxy (#197)- Enables support for
socksproxies toimpit-node. This theoretically enablessocksproxies for CLI and the Python binding as well, but this behaviour is untested due to a lack of working socks proxy server implementations in Python.
- Enables support for
-
Support for custom cookie stores for Python (#182)
- Adds
cookie_jarconstructor parameter forClientandAsyncClientclasses, acceptinghttp.cookiejar'sCookieJar(or a custom implementation thereof, implementing at leastsetCookie(cookie: http.cookiejar.Cookie)anditer(): Cookie[]. impit will write to and read from this custom cookie store. Related to #123
- Adds
-
Client-scoped
headersoption (#200)- Adds
headerssetting toImpitconstructor to set headers to be included in every request made by the built [Impit] instance. This can be used to add e.g. custom user-agent or authorization headers that should be included in every request. These headers override the "impersonation" headers set by thewith_browsermethod. In turn, these are overridden by request-specificheaderssetting.
- Adds