Commit Graph
712 Commits
Author SHA1 Message Date
oliveraw 922d51df02 modified docstring for playlist_add_items to no longer accept IDs 2022-12-16 19:17:37 +00:00
Mason Stephenson edd3f29a2c Getting Started Clarifications and Example Code File (#904)
* added URI link to README getting started

* revised comment

* added alternate module installation instruction

* installation troubleshooting comment

* scope clarification comment

* added playlist_add_items.py to examples folder

* reformatted changelog edits

* Relocated added contributions to added section in Changelog

* removed unnecessary library installation instruction

* Clarified alternative installation instruction
2022-12-10 16:27:29 +00:00
Stephane Bruckert 1377879972 Update contributing.md 2022-12-10 16:02:03 +00:00
Stephane Bruckert 1e840b6526 Bump to 2.22.0 2.22.0 2022-12-10 15:31:47 +00:00
mattgader d2384c1c33 Add CODE_OF_CONDUCT.md (#897) 2022-12-10 14:22:45 +00:00
Kevin Sekuj 5201f58247 Add tests for global categories, releases, fix bugged tests (#893) 2022-11-26 09:29:53 +00:00
Stéphane Bruckert edcd322845 Pin Github Actions Runner to Ubuntu 20 for Py27 (#894) 2022-11-26 08:40:49 +00:00
Sean Park 6f56504c2c Update category tests to fix 1 failing and 1 error test results (#886)
* update category tests to fix 1 failing and 1 error test results

* update changelog
2022-11-13 10:42:25 +00:00
Stéphane Bruckert 1265d7b915 GHA integration tests (#876) 2022-11-01 21:57:40 +00:00
Stéphane Bruckert e9fd81ce21 Update integration_tests.yml 2022-11-01 21:52:01 +00:00
Stéphane Bruckert 459be3d400 Integration tests workflow (2) 2022-11-01 21:36:43 +00:00
Stephane Bruckert 0c32cd74d9 Integration tests workflow 2022-11-01 21:26:01 +00:00
Stéphane Bruckert 9bf5e342c2 Add secrets to GHA workflow (#877) 2022-11-01 20:52:25 +00:00
Alberto Pasqualetto cc5eaca191 Fix linting in test_non_user_endpoints (#841) 2022-10-29 15:50:56 +01:00
Bruno Alla fa44fed76d Fix a few typos in comments & strings (#866) 2022-10-29 14:23:43 +01:00
Pedro Rodriguesandavivaschmitz dd69a48659 Create tutorial for beginners (#872)
* Create TUTORIAL.md

* remova blank space

Co-authored-by: avivaschmitz <39923753+avivaschmitz@users.noreply.github.com>
2022-10-29 14:20:50 +01:00
Job Doesburg be759d3f50 Implement get-queue endpoint (#854) 2022-10-29 13:01:25 +01:00
Stephane Bruckert 5a7e5c5a43 Bump to 2.21.0, closes #836 2.21.0 2022-10-26 23:03:42 +01:00
Bruno Alla fd8f97d46a Add python 3.10 to GitHub Actions (#863) 2022-10-26 22:59:10 +01:00
Stephane Bruckert 06765c4f5a Fix flake8 2022-10-26 22:56:38 +01:00
Paulina Khew be27391461 Add missing step to CONTRIBUTING.md to activate virtualenv (#848) 2022-08-30 23:16:38 +01:00
Bryan Malyn 7fc08809f0 Add FlaskSessionCacheHandler (#833)
Updated examples/app.py
Updated CHANGELOG.md and appropriate docs.
2022-06-25 20:00:08 +01:00
Stephane Bruckert 7337bf9352 Fix readthedocs 2022-06-19 09:03:13 +01:00
Ian Rolph eab3c37b89 Updated documentation (#826)
* updated documentation

* updated changelog
2022-06-18 23:34:36 +01:00
Robinson Ibarra ca73420248 Added documentation for windows users attempting to set environment variables (#822) 2022-06-18 23:30:07 +01:00
Stephane Bruckert 36ea3d9319 Fix lint 2022-06-18 23:29:12 +01:00
mattrost 1b0c426984 Addition of Test Cases (#818)
* Added test_categories_country to use optional country selection for categories method.

* Added test_categories_locale for testing locale method of categories.

* Added test_categories_limit_low and test_categories_limit_high to test the limit method of categories for edge cases.

* Rearranged for flow

* Added test_category_playlists_limit_low and test_category_playlists_limit_high for testing the limit method.
2022-06-18 23:28:08 +01:00
dnlruizandStéphane Bruckert a4cfd83946 show_featured_artists.py and update publishing docs (#821)
* show_featured_artists.py and update publishing docs

* Don't update version

Co-authored-by: Stéphane Bruckert <contact@stephanebruckert.com>
2022-06-18 23:26:43 +01:00
Stephane Bruckert 61c8cda006 Fix lint 2022-06-18 23:24:49 +01:00
kanari1 6164dbb628 Fixed and clarified docstrings for client.py (#820)
* fixed docstring for current_user_following_users_function

* Edited docstrings for playlist_cover_image, user_playlist, user_playlist_replace_tracks, user_playlist_reorder_tracks functions

* expanded docstring description of playlist_change_details function to include changes to collaborative state and/or description
2022-06-18 23:20:37 +01:00
darwady2 c6b56a658a Add YT video URL to doc (#816)
For a final assignment in a class, I've created a How-To video that showcases how to get setup with API credentials, Redirect URIs, and Spotify Developer Accounts, all of which are necessary prerequisites to using the Spotipy library.

I wanted to do this because, in my past experience, the most frustrating thing about working with APIs and libraries is authentication. Spotipy does a nice job of wrapping some of this and making it easier on the developer, but it still takes some setup before successful use.

Specifically, my video goes through the following:
* Installing Spotipy
* Setting up a Spotify Developer Account
* Configuring the Redirect URI
* Getting the Client Secret and Public Keys
* Setting the envars for use with Spotipy
* Running a sample piece of code from Spotipy to show that things are setup properly
2022-06-18 23:20:11 +01:00
Logan O'Connell 13593c54cb Added a new example: follow_playlist.py (#804)
* Create playlist_all_local_tracks.py

* Delete playlist_all_local_tracks.py

* Create follow_playlist.py
2022-06-18 23:19:27 +01:00
ivyadam 5175f19851 Updated documentation about ISO-639 language codes and address issue #753 (#800)
* Updated references to ISO 639 standard to clarify that the ISO 639-1 alpha-2 standard is used.

* Added `market` parameter to `album` and `albums`

* fix formatting change
2022-06-18 23:18:59 +01:00
Andrii Oriekhov 14ee53eacd Add GitHub URL for PyPi (#787) 2022-06-18 23:18:20 +01:00
Mohammad Momeni 72a6cd9190 Fix text attribute for Response object (#811)
* Fix text attribute for Response object

* Add a changelog for the AttributeError PR
2022-06-18 23:17:58 +01:00
Stephane Bruckert c1a85f1469 Bump to 2.20.0, closes #806 2.20.0 2022-06-18 22:59:37 +01:00
Stéphane Bruckert 98f0f76238 Removed Python 3.5 and added Python 3.9 in Github Action (#831)
* Removed python3.5 from CI

* Add python 3.9
2022-06-18 22:56:42 +01:00
ENT8R 9a627e88f4 Simplify check for existing token (#765)
* Simplify check for existing token in RedisCacheHandler

* Update CHANGELOG.md
2022-01-03 19:33:13 +01:00
ENT8R 08411b9031 Allow to set custom key in RedisCacheHandler (#761)
* Allow to set custom key in RedisCacheHandler

* Update CHANGELOG.md

* Check for the existence of the key
2021-12-22 15:44:38 +01:00
Felix Cusson 0464f4f483 Remove query parameters from URI (#758)
* made _get_id take account of ? in URI

* corrected typo

* changes to _get_id explained
2021-12-17 22:20:47 +00:00
rautskaa 2aeda6a2c2 Adding example for unfollowing/deleting a playlist (#746)
* Adding example for deleting a playlist

* Renaming to unfollow_playlist
2021-11-23 21:48:53 +00:00
Takehisa Oyama 7d23fc3277 Add RedisCacheHandler (#747)
* add RedisCacheHandler

* add the explanation for customized chache handlers

* update the dependency and chengelog
2021-11-22 19:31:58 +00:00
StopMotionCuber 0a9270f385 Update link to usage scopes (#738) 2021-10-30 21:22:21 +01:00
Yash a81aa595ba Fixed some playlist functions docstrings (#732)
playlist_items(), playlist_cover_image() functions can take ID, URI or URL. Current docstring only mentions ID. This can also be verified and tested out. Example in examples folder also uses URI with playlist_items().
2021-09-30 22:01:12 +01:00
Stephane Bruckert 48d04f343b Bump to 2.19.0 2.19.0 2021-08-12 11:27:26 +01:00
Stéphane Bruckert b80bfa5c52 Generate license (#699)
* Create LICENSE

* Delete LICENSE.md

* Update setup.py

* Update CHANGELOG.md
2021-06-28 20:54:42 +01:00
dvirOsher 1a6df54111 update current_user_saved_albums function message (#697)
max limit spotipy can handler without getting any HTTP 401 error is 50.
2021-06-26 20:20:45 +01:00
Michael Stewart 72280c850b Update index.rst (#696)
Not sure how to edit RSt properly, but wanted to point out for others the superhelpful feature that spotipy already includes code to launch an http server to listen for the http callback
2021-06-26 20:19:44 +01:00
Peter SchornandStéphane Bruckert 06551cd055 Fallback on decoding error responses into string if decoding into JSON fails (#689)
* 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.

* fixed a bug in _get_auth_response_local_server which occurs if you provide a state parameter and click cancel in the authorization dialog

* Fallback on decoding the error response body into text if decoding into JSON fails.

* Fall back on decoding oauth errors into text if decoding into JSON fails.

* Fixed unused `http_error` name in exeception clause.

* Updated CHANGELOG

Co-authored-by: Stéphane Bruckert <stephane.bruckert@gmail.com>
2021-06-19 15:59:02 +02:00
Varun Patil d0fc4425f7 Added DjangoSessionCacheHandler (#691)
* Added DjangoSessionCacheHandler

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.

* removed whitespaces
2021-06-19 15:57:36 +02:00