[PR #28] [CLOSED] Support for Python 3 #733

Closed
opened 2026-02-28 00:01:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/28
Author: @joohoi
Created: 9/18/2014
Status: Closed

Base: masterHead: master


📝 Commits (10+)

  • ff655aa Base conversion with 2to3
  • a36a6b7 Fixed Python 3.4 ResourceWarnings from SSL sockets that were left open
  • 956d10b Fixed (byte)string handling when calling base64 lib
  • cb49ac2 Fixed tests as the referred API error seems to have been fixed
  • 0caf56c Fixes to support both Python 2 & 3, print_function and urllib imports
  • 283026b Fix for python 2 to use the safe raw_input() per default
  • 3a40b07 Now checking the right exception
  • 22bebba more setup debugging
  • a2efddc Added support for new_releases and featured_playlists endpoints.
  • e71f4ac Python 3 compatible print syntax to examples

📊 Changes

33 files changed (+225 additions, -104 deletions)

View changed files

📝 README.md (+1 -1)
📝 docs/conf.py (+8 -8)
📝 examples/add_a_saved_track.py (+2 -2)
📝 examples/add_tracks_to_playlist.py (+3 -3)
📝 examples/artist_albums.py (+2 -2)
📝 examples/artist_discography.py (+7 -7)
📝 examples/contains_a_saved_track.py (+2 -2)
📝 examples/create_playlist.py (+2 -2)
📝 examples/delete_a_saved_track.py (+2 -2)
📝 examples/remove_specific_tracks_from_playlist.py (+2 -2)
📝 examples/remove_tracks_from_playlist.py (+2 -2)
📝 examples/replace_tracks_in_playlist.py (+2 -2)
📝 examples/show_artist_top_tracks.py (+1 -1)
examples/show_featured_playlists.py (+33 -0)
📝 examples/show_my_saved_tracks.py (+3 -3)
examples/show_new_releases.py (+32 -0)
📝 examples/show_related.py (+3 -3)
📝 examples/show_tracks.py (+2 -2)
📝 examples/simple0.py (+1 -1)
📝 examples/simple1.py (+1 -1)

...and 13 more files

📄 Description

With these changes Spotipy works with both Python 2.7 and Python 3.4, even though the examples still remain untested. All existing tests pass on both platforms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/28 **Author:** [@joohoi](https://github.com/joohoi) **Created:** 9/18/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`ff655aa`](https://github.com/spotipy-dev/spotipy/commit/ff655aa3f00167679d97591b97a24869cfe74453) Base conversion with 2to3 - [`a36a6b7`](https://github.com/spotipy-dev/spotipy/commit/a36a6b79d218e0f91154ad76351d10b15f087388) Fixed Python 3.4 ResourceWarnings from SSL sockets that were left open - [`956d10b`](https://github.com/spotipy-dev/spotipy/commit/956d10bfc77cd4cc1e1159c5b70ad73b091e8c18) Fixed (byte)string handling when calling base64 lib - [`cb49ac2`](https://github.com/spotipy-dev/spotipy/commit/cb49ac2e6211e3878af28d8c7f5198e15387da0d) Fixed tests as the referred API error seems to have been fixed - [`0caf56c`](https://github.com/spotipy-dev/spotipy/commit/0caf56cbf8ad7bdd883d6d91536ad1629c045be2) Fixes to support both Python 2 & 3, print_function and urllib imports - [`283026b`](https://github.com/spotipy-dev/spotipy/commit/283026b3daf2c9078fa71fa6a71df61e10b764a7) Fix for python 2 to use the safe raw_input() per default - [`3a40b07`](https://github.com/spotipy-dev/spotipy/commit/3a40b0734b4a4749cd09e02f4deae85a196c79fc) Now checking the right exception - [`22bebba`](https://github.com/spotipy-dev/spotipy/commit/22bebba9b46e2ac3d212691b57af542256f33815) more setup debugging - [`a2efddc`](https://github.com/spotipy-dev/spotipy/commit/a2efddc950b9e9729033b02fc2dc631f6c2d9abe) Added support for new_releases and featured_playlists endpoints. - [`e71f4ac`](https://github.com/spotipy-dev/spotipy/commit/e71f4ac6d6579e3fb8eb7b01d6c39bfe94eb007b) Python 3 compatible print syntax to examples ### 📊 Changes **33 files changed** (+225 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `docs/conf.py` (+8 -8) 📝 `examples/add_a_saved_track.py` (+2 -2) 📝 `examples/add_tracks_to_playlist.py` (+3 -3) 📝 `examples/artist_albums.py` (+2 -2) 📝 `examples/artist_discography.py` (+7 -7) 📝 `examples/contains_a_saved_track.py` (+2 -2) 📝 `examples/create_playlist.py` (+2 -2) 📝 `examples/delete_a_saved_track.py` (+2 -2) 📝 `examples/remove_specific_tracks_from_playlist.py` (+2 -2) 📝 `examples/remove_tracks_from_playlist.py` (+2 -2) 📝 `examples/replace_tracks_in_playlist.py` (+2 -2) 📝 `examples/show_artist_top_tracks.py` (+1 -1) ➕ `examples/show_featured_playlists.py` (+33 -0) 📝 `examples/show_my_saved_tracks.py` (+3 -3) ➕ `examples/show_new_releases.py` (+32 -0) 📝 `examples/show_related.py` (+3 -3) 📝 `examples/show_tracks.py` (+2 -2) 📝 `examples/simple0.py` (+1 -1) 📝 `examples/simple1.py` (+1 -1) _...and 13 more files_ </details> ### 📄 Description With these changes Spotipy works with both Python 2.7 and Python 3.4, even though the examples still remain untested. All existing tests pass on both platforms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:01:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#733
No description provided.