Restkit

Latest version: v4.2.2

Safety actively analyzes 630052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

3.2

----------------

- Some deep rewrite of the client. Requests and Connections are now
maintened in their own instances, so we don't rely on client instance
to close or release the connection Also we don't pass local variable
to handle a request. At the end each requests are more isolated and we are
fully threadsafe.
- Improve error report.
- Handle case where the connection is closed but the OS still accept
sending. From the man: "When the message does not fit into the send
buffer of the socket, send() normally blocks, unless th socket has
been placed in nonblocking I/O mode.""" . Spotted by loftus on irc.
Thanks.

Breaking changes:
+++++++++++++++++

- Rewrite filters handling. We now pass a request instance to the
on_request filters. If a request filter return a response, we stop to
perform here. response filters accept now the response and request
instances as arguments. There is no more on_connect filters (it was a
bad idea)
- Proxy support. Proxies are now supported by passing the argument
"use_proxy=True" to client, request and resources objects.

3.0

----------------

- New Connection management: Better concurrency handling and iddle
connections are now closed after a time.
- Improved Client.
- Fix redirect
- Better error handling
- Timeout can now be set on each request.
- Major refactoring. consolidation of some module, ease the HTTP parser
code.
- Fix timeout errors.

2.3.0

Not secure
------------------
- Refactored Http Connections management (reuse connections).
restkit.pool is now replaced by restkit.conn module. SimplePool has
been replaced by TConnectionManager (threadsafe). Now by default all
connections are reusing connections using TConnectionManager (10
connections per route).
- Improved Gevent & Eventlet support
- Added an ``decompress`` option to ``request`` function and ``Resource``
instance to decompress the body or not. By default it's true.
- Added ``params_dict`` to keywords arguments of ``Resource`` instances
methods. Allows you to pass any argument to the query.
- Fix response 100-continue
- Fix compressed atatchments
- Fix body readline
- Fix basic authentication
- Stop when system exit or keyboard interrupt
- Fix oauth2

More details `here <https://github.com/benoitc/restkit/compare/2.1.1...2.1.3>`_ .

2.2.1

Not secure
------------------
- Fix readline `b7365155 <http://github.com/benoitc/restkit/commit/b7365155168cc9df7e48edabad79b2c478e8c5c7>`_ .

2.2.0

Not secure
------------------
- Refactor client code. Improve header parsing
- Fix Deflate/Gzip decompression and make it fully
streamed.
- Fix oauth2 in POST requests
- Fix import with Python 2.5/2.4
- Fix Exceptions
- body, unicod_body and body_file methods have been removed from the
HTTP response.

2.1.6

Not secure
-----------------
- Fix debian packaging
- Fix oauth

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.