Tekore

Latest version: v5.5.1

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

Scan your dependencies

Page 6 of 8

3.2.0

Added
- Support Python 3.9 (219)
- Dependency to HTTPX upgraded to include versions `0.15.*` and `0.16.*` (216)
- Error messages for `parse_code_from_url`, `parse_state_from_url` and `Credentials.pkce_user_authorisation` were improved (218)
- `Spotify` and senders, both synchronous and asynchronous, can now be closed directly with `close` (220)

3.1.0

Added
- `StrEnum` - model enumerations now inherit from `str`, making e.g. using it as a key for sorting possible (214)

Fixed
- `PrivateUser` - a birthday attribute was added. It is not obtainable with new tokens but is returned for old tokens that have the now-invalid `user-read-birthday` scope (52, 197)

3.0.1

Fixed
- `featured_playlists` - allow missing owner in `Playlist` models (212)

3.0.0

The next major iteration of Tekore brings fewer breaking changes than in 2.0, but packs a number of improvements to authorisation and senders. Most notably, PKCE is now provided as an option for user authorisation and Requests is no longer used to perform web requests. HTTPX, which was already in use with async, is used exclusively instead.

Added
- Authorisation - PKCE can be used in user authorisation, providing added security for public clients by removing the need to use a client secret (189)
- `UserAuth` - implement user authorisation with security checks, the caller simply provides the resulting URI after redirection (207)
- Senders - Tekore's own `Request` and `Response` wrappers are now used in the sender interface (139)
- Classes now have a readable `repr` (191)
- Dependency to HTTPX upgraded to include version `0.14.*` (202)
- `gen_state` - generate state for user authorisation (207)
- `parse_state_from_url` - parse state from URL parameters (207)

Removed
- Client - methods for playlist tracks and `episodes_as_tracks` argument of `Spotify.playlist` deprecated in 2.0 (178, 202)
- Dependency to Requests dropped in favor of HTTPX (139)
- Senders - `TransientSender` and `SingletonSender` along with their asynchronous variants were removed (139)
- Senders - default sender and keyword argument options were removed (139)

Changed
- Errors - web exceptions now inherit from `Exception` rather than the underlying HTTP library's top-level exception. They always contain the relevant `Request` and `Response` (139)
- Senders - as the only concrete senders, `PersistentSender` and `AsyncPersistentSender` are now implemented in `SyncSender` and `AsyncSender`, respectively (139)
- `CachingSender` - argument order is now in line with `RetryingSender` (139)
- Senders - clients (`Spotify` and `Credentials`) now inherit from `ExtendingSender` (139)
- Authorisation - raise a more descriptive error if secret is required but not provided (210)

Fixed
- Client - fix chunking errors that occurred when passing certain parameters as positional arguments (205)

2.1.3

Fixed
- Client - correctly return `ModelList` when chunking input (196)
- Authorisation - fix error handling when response does not contain an error description (199)
- `playback` and `playback_currently_playing` - correctly handle local tracks (200)

2.1.2

Fixed
- `FullShow` - add undocumented `total_episodes` parameter, mark `total_episodes` of `SimpleShow` undocumented (194)

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.