[PR #540] [MERGED] A few updates to the example app. #930

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

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/540
Author: @MikeiLL
Created: 7/12/2020
Status: Merged
Merged: 7/30/2020
Merged by: @stephanebruckert

Base: masterHead: master


📝 Commits (10+)

  • 6bebde3 No username needed + can be used by multiple users
  • 930007d cleanup
  • 748638f Remove caches when signing out
  • 9d9b98d Persist token only once
  • 6ed4dd8 Always show auth page
  • cfa49a1 Add one scope..
  • 450fc98 Add a second scope and also a view which utilizes a scope.
  • 7848c71 Add a main clause example.
  • 37b333a Include further documentation.
  • 3106dde Move utility function higher in document.

📊 Changes

1 file changed (+51 additions, -6 deletions)

View changed files

📝 examples/app.py (+51 -6)

📄 Description

I added a new file, which shows an example of importing credentials from a separate file.

Hopefully this won't be messy as I see there is already a work in progress (#539) which I hadn't noticed.

Having multiple scopes works in the minimal example, so will have to see what's different in the app I'm developing that's consistently giving the OSError: [Errno 48] Address already in use error when a second scope is added.


🔄 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/540 **Author:** [@MikeiLL](https://github.com/MikeiLL) **Created:** 7/12/2020 **Status:** ✅ Merged **Merged:** 7/30/2020 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`6bebde3`](https://github.com/spotipy-dev/spotipy/commit/6bebde3911cdf5c9b8e9297479ef6581e6c6f2db) No username needed + can be used by multiple users - [`930007d`](https://github.com/spotipy-dev/spotipy/commit/930007d960072bbcfe30032cb65798405b38db4c) cleanup - [`748638f`](https://github.com/spotipy-dev/spotipy/commit/748638fbd807ebd766cb9be2b4f1f5b67ce4164e) Remove caches when signing out - [`9d9b98d`](https://github.com/spotipy-dev/spotipy/commit/9d9b98d02aa86ba1c7c9e9d6e5f1f76ff5d15fff) Persist token only once - [`6ed4dd8`](https://github.com/spotipy-dev/spotipy/commit/6ed4dd839ba28d090affdd3f7833efbdb25d3528) Always show auth page - [`cfa49a1`](https://github.com/spotipy-dev/spotipy/commit/cfa49a1333d4f5142ae683a55c42e2def6e10971) Add one scope.. - [`450fc98`](https://github.com/spotipy-dev/spotipy/commit/450fc98dd519c57f1cd0799e4ea5e44d23c4a10c) Add a second scope and also a view which utilizes a scope. - [`7848c71`](https://github.com/spotipy-dev/spotipy/commit/7848c719ecfce3feec8c0a19017ebbf64d579ef8) Add a __main__ clause example. - [`37b333a`](https://github.com/spotipy-dev/spotipy/commit/37b333ac56374578c994c1aba8f6f44054983ac3) Include further documentation. - [`3106dde`](https://github.com/spotipy-dev/spotipy/commit/3106ddebaf0d21d57ede8bdcb51ee5b6fab1ace0) Move utility function higher in document. ### 📊 Changes **1 file changed** (+51 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `examples/app.py` (+51 -6) </details> ### 📄 Description I added a new file, which shows an example of importing credentials from a separate file. Hopefully this won't be messy as I see there is already a work in progress ([#539](https://github.com/plamere/spotipy/pull/539)) which I hadn't noticed. Having multiple scopes works in the minimal example, so will have to see what's different in the app I'm developing that's consistently giving the `OSError: [Errno 48] Address already in use` error when a second scope is added. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:02:42 +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#930
No description provided.