Added RedisCacheHandler, a cache handler that stores the token info in Redis.
Changed URI handling in client.Spotify._get_id() to remove qureies if provided by error.
Added a new parameter to RedisCacheHandler to allow custom keys (instead of the default token_info key)
Simplify check for existing token in RedisCacheHandler
Changed
Removed Python 3.5 and added Python 3.9 in Github Action
2.19: Memory and Django cache handlers
Added
Added MemoryCacheHandler, a cache handler that simply stores the token info in memory as an instance attribute of this class.
If a network request returns an error status code but the response body cannot be decoded into JSON, then fall back on decoding the body into a string.
Added DjangoSessionCacheHandler, a cache handler that stores the token in the session framework provided by Django. Web apps using spotipy with Django can directly use this for cache handling.
Fixed
Fixed a bug in CacheFileHandler.__init__: The documentation says that the username will be retrieved from the environment, but it wasn't.
Fixed a bug in the initializers for the auth managers that produced a spurious warning message if you provide a cache handler and you set a value for the "SPOTIPY_CLIENT_USERNAME" environment variable.
Use generated MIT license and fix license type in pip show
Added RedisCacheHandler, a cache handler that stores the token info in Redis.
Changed URI handling in client.Spotify._get_id() to remove qureies if provided by error.
Added a new parameter to RedisCacheHandler to allow custom keys (instead of the default token_info key)
Simplify check for existing token in RedisCacheHandler
Changed
Removed Python 3.5 and added Python 3.9 in Github Action
[2.19.0] - 2021-08-12
Added
Added MemoryCacheHandler, a cache handler that simply stores the token info in memory as an instance attribute of this class.
If a network request returns an error status code but the response body cannot be decoded into JSON, then fall back on decoding the body into a string.
Added DjangoSessionCacheHandler, a cache handler that stores the token in the session framework provided by Django. Web apps using spotipy with Django can directly use this for cache handling.
Fixed
Fixed a bug in CacheFileHandler.__init__: The documentation says that the username will be retrieved from the environment, but it wasn't.
Fixed a bug in the initializers for the auth managers that produced a spurious warning message if you provide a cache handler and you set a value for the "SPOTIPY_CLIENT_USERNAME" environment variable.
Use generated MIT license and fix license type in pip show
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps spotipy from 2.18.0 to 2.20.0.
Release notes
Sourced from spotipy's releases.
Changelog
Sourced from spotipy's changelog.
Commits
c1a85f1
Bump to 2.20.0, closes #80698f0f76
Removed Python 3.5 and added Python 3.9 in Github Action (#831)9a627e8
Simplify check for existing token (#765)08411b9
Allow to set custom key in RedisCacheHandler (#761)0464f4f
Remove query parameters from URI (#758)2aeda6a
Adding example for unfollowing/deleting a playlist (#746)7d23fc3
Add RedisCacheHandler (#747)0a9270f
Update link to usage scopes (#738)a81aa59
Fixed some playlist functions docstrings (#732)48d04f3
Bump to 2.19.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)