[PR #42] [MERGED] Use Requests sessions for connection pooling #734

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/42
Author: @akx
Created: 1/3/2015
Status: Merged
Merged: 1/5/2015
Merged by: @plamere

Base: masterHead: session


📝 Commits (2)

  • 62ced74 Use Requests sessions for connection pooling.
  • 004ef98 Test Requests session functionality.

📊 Changes

2 files changed (+45 additions, -14 deletions)

View changed files

📝 spotipy/client.py (+24 -14)
📝 tests/tests.py (+21 -0)

📄 Description

This PR also adds tests for the new functionality.

Tests also run pleasantly faster thanks to connection pooling:

(branch: session) Ran 20 tests in 4.744s
(branch: master) Ran 17 tests in 6.037s


🔄 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/42 **Author:** [@akx](https://github.com/akx) **Created:** 1/3/2015 **Status:** ✅ Merged **Merged:** 1/5/2015 **Merged by:** [@plamere](https://github.com/plamere) **Base:** `master` ← **Head:** `session` --- ### 📝 Commits (2) - [`62ced74`](https://github.com/spotipy-dev/spotipy/commit/62ced74126b20684ca8a21a604bb807fc7bab95f) Use Requests sessions for connection pooling. - [`004ef98`](https://github.com/spotipy-dev/spotipy/commit/004ef98a2ce4cb034f6e5b33519478d36ca70296) Test Requests session functionality. ### 📊 Changes **2 files changed** (+45 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `spotipy/client.py` (+24 -14) 📝 `tests/tests.py` (+21 -0) </details> ### 📄 Description This PR also adds tests for the new functionality. Tests also run pleasantly faster thanks to connection pooling: > (branch: session) Ran 20 tests in 4.744s > (branch: master) Ran 17 tests in 6.037s --- <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#734
No description provided.