mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[PR #664] [CLOSED] replace Requests http client by Niquests #696
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#696
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigma67/ytmusicapi/pull/664
Author: @Ousret
Created: 10/15/2024
Status: ❌ Closed
Base:
main← Head:feat-niquests📝 Commits (7)
d811951replace Requests http client by Niquestse42c521don't use a HTTP headers storage class for auth settingsf763319fix mypy lint errorsa899d8ffix input_dict inline creation1e2c07fraise exception if body can't be decoded (unlikely)22d3c41force CI rebootab4dcdfforce CI reboot with transitive deps update📊 Changes
13 files changed (+633 additions, -332 deletions)
View changed files
📝
.github/workflows/lint.yml(+2 -1)📝
pdm.lock(+590 -303)📝
pyproject.toml(+1 -2)📝
tests/auth/test_oauth.py(+3 -3)📝
tests/mixins/test_uploads.py(+1 -1)📝
ytmusicapi/auth/browser.py(+1 -1)📝
ytmusicapi/auth/oauth/credentials.py(+1 -1)📝
ytmusicapi/auth/oauth/token.py(+2 -3)📝
ytmusicapi/mixins/_protocol.py(+1 -1)📝
ytmusicapi/mixins/browsing.py(+13 -1)📝
ytmusicapi/mixins/uploads.py(+2 -2)📝
ytmusicapi/setup.py(+1 -1)📝
ytmusicapi/ytmusic.py(+15 -12)📄 Description
This PR effectively replace the http client Requests for Niquests.
Niquests is a drop-in replacement for Requests that is no longer under feature freeze.
This new client support HTTP/2, and HTTP/3 by default and offers both sync and async interfaces. It supports all the latest shiny features you would expect from an http client.
If you were interested on merging, I will be interested to propose a followup PR that will propose a script that generate
the async part of ytmusicapi automatically. If you want to.
disclaimer: I maintain Niquests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.