Yadisk

Latest version: v2.1.0

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

Scan your dependencies

Page 1 of 7

2.1.0

&8212; Fixed a bug where POST request parameters were not encoded correctly
&8212; Fixed a bug in `PycURLSession.send_request()` that made it ignore passed headers
&8212; `RequestsSession.close()` now closes all underlying session instances, instead of only the current thread-local one
&8212; All methods of `Client` and `AsyncClient` now use existing session
&8212; Removed `session_factory` attribute and `make_session()` method of `Client` and `AsyncClient`
&8212; Session class can now be specified as a string
&8212; Added `Client.get_device_code()`/`AsyncClient.get_device_code()` methods
&8212; Added `Client.get_token_from_device_code()`/`AsyncClient.get_token_from_device_code()` methods
&8212; Added missing `redirect_uri` parameter for `Client.get_auth_url()`/`AsyncClient.get_auth_url()` and `Client.get_code_url()`/`AsyncClient.get_code_url()`
&8212; Added support for PKCE parameters for `Client.get_auth_url()`/`AsyncClient.get_auth_url()`, `Client.get_code_url()`/`AsyncClient.get_code_url()` and `Client.get_token()`/`AsyncClient.get_token()`
&8212; Added `scope` attribute for `TokenObject`
&8212; Added new exception classes: `InvalidClientError`, `InvalidGrantError`, `AuthorizationPendingError`, `BadVerificationCodeError` and `UnsupportedTokenTypeError`

2.0.0

&8212; The library now provides both synchronous and asynchronous APIs (see [Introduction](https://yadisk.readthedocs.io/en/latest/intro.html) and [API Reference](https://yadisk.readthedocs.io/en/latest/api_reference/index.html))
&8212; Multiple HTTP libraries are supported by default (see [Available Session Implementations](https://yadisk.readthedocs.io/en/latest/api_reference/sessions.html) for the full list)
&8212; It is now possible to add support for any HTTP library (see [Session Interface](https://yadisk.readthedocs.io/en/latest/api_reference/session_interface.html))
&8212; [requests](https://pypi.org/project/requests) is now an optional dependency (although it's still used by default for synchronous API)
&8212; Note that now requests-specific arguments must be passed differently (see [Available Session Implementations](https://yadisk.readthedocs.io/en/latest/api_reference/sessions.html))
&8212; Preferred HTTP client libraries must be explicitly installed now (see [Introduction](https://yadisk.readthedocs.io/en/latest/intro.html))
&8212; `Client.upload()` and `Client.upload_by_link()` can now accept a function that returns an iterator (or a generator) as a payload

1.3.4

&8212; `upload()` and `download()` (and related) methods can now upload/download non-seekable file-like objects (e.g. `stdin` or `stdout` when open in binary mode), see PR 31

1.3.3

&8212; `app:/` paths now work correctly (see issue 26)

1.3.2

&8212; Fixed issue 29: TypeError: 'type' object is not subscriptable

1.3.1

&8212; Fixed 28: `download_public()` with path keyword argument raises `TypeError`
&8212; Fixed `AttributeError` raised when calling `ResourceLinkObject.public_listdir()`

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.