qqmusic-api-python 0.1.10__tar.gz → 0.1.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/PKG-INFO +15 -26
  2. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/README.md +14 -25
  3. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/pyproject.toml +1 -1
  4. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/__init__.py +1 -1
  5. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/utils/network.py +1 -2
  6. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/LICENSE +0 -0
  7. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/album.py +0 -0
  8. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/album.json +0 -0
  9. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/login.json +0 -0
  10. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/lyric.json +0 -0
  11. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/mv.json +0 -0
  12. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/search.json +0 -0
  13. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/singer.json +0 -0
  14. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/song.json +0 -0
  15. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/songlist.json +0 -0
  16. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/top.json +0 -0
  17. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/api/user.json +0 -0
  18. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/file_type.json +0 -0
  19. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/data/search_type.json +0 -0
  20. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/exceptions/__init__.py +0 -0
  21. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/exceptions/api_exception.py +0 -0
  22. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/login.py +0 -0
  23. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/login_utils.py +0 -0
  24. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/lyric.py +0 -0
  25. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/mv.py +0 -0
  26. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/search.py +0 -0
  27. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/singer.py +0 -0
  28. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/song.py +0 -0
  29. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/songlist.py +0 -0
  30. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/top.py +0 -0
  31. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/user.py +0 -0
  32. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/utils/__init__.py +0 -0
  33. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/utils/credential.py +0 -0
  34. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/utils/qimei.py +0 -0
  35. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/utils/sync.py +0 -0
  36. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/utils/tripledes.py +0 -0
  37. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/qqmusic_api/utils/utils.py +0 -0
  38. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/conftest.py +0 -0
  39. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_album.py +0 -0
  40. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_login.py +0 -0
  41. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_lyric.py +0 -0
  42. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_mv.py +0 -0
  43. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_qimei.py +0 -0
  44. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_search.py +0 -0
  45. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_singer.py +0 -0
  46. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_song.py +0 -0
  47. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_songlist.py +0 -0
  48. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_top.py +0 -0
  49. {qqmusic_api_python-0.1.10 → qqmusic_api_python-0.1.11}/tests/test_user.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qqmusic-api-python
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: QQ音乐API封装库
5
5
  Keywords: music,api,qqmusic,tencentmusic
6
6
  Author-Email: Luren <68656403+luren-dc@users.noreply.github.com>
@@ -26,34 +26,29 @@ Requires-Dist: httpx>=0.27.0
26
26
  Description-Content-Type: text/markdown
27
27
 
28
28
  <div align="center">
29
- <h1> QQMusicApi </h1>
30
- <p> Python QQ音乐 API 封装库 </p>
31
- <a href="https://www.python.org">
32
- <img src="https://img.shields.io/badge/python-3.9|3.10|3.11|3.12-blue" alt="Python">
33
- </a>
34
- <a href="https://github.com/astral-sh/ruff">
35
- <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
29
+ <a>
30
+ <img src="https://socialify.git.ci/luren-dc/QQMusicApi/image?description=1&font=Source%20Code%20Pro&language=1&logo=https%3A%2F%2Fy.qq.com%2Fmediastyle%2Fmod%2Fmobile%2Fimg%2Flogo.svg&name=1&pattern=Overlapping%20Hexagons&theme=Auto">
36
31
  </a>
37
- <a href="https://pdm-project.org">
38
- <img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fpdm-project%2F.github%2Fbadge.json" alt="pdm-managed">
32
+ <a href="https://www.python.org">
33
+ <img src="https://img.shields.io/badge/Python-3.9|3.10|3.11|3.12-blue" alt="Python">
39
34
  </a>
40
35
  <a href="https://github.com/luren-dc/QQMusicApi?tab=MIT-1-ov-file">
41
- <img src="https://img.shields.io/github/license/luren-dc/PyQQMusicApi" alt="GitHub license">
36
+ <img src="https://img.shields.io/github/license/luren-dc/QQMusicApi" alt="GitHub license">
42
37
  </a>
43
38
  <a href="https://github.com/luren-dc/QQMusicApi/stargazers">
44
39
  <img src="https://img.shields.io/github/stars/luren-dc/QQMusicApi?color=yellow&label=Github%20Stars" alt="STARS">
45
40
  </a>
46
41
  <a href="https://github.com/luren-dc/QQMusicApi/actions/workflows/testing.yml">
47
- <img src="https://github.com/luren-dc/QQMusicApi/actions/workflows/testing.yml/badge.svg?branch=dev" alt="Testing">
42
+ <img src="https://github.com/luren-dc/QQMusicApi/actions/workflows/testing.yml/badge.svg?branch=main" alt="Testing">
48
43
  </a>
49
44
  </div>
50
45
 
51
46
  ---
52
47
 
53
- > [!WARNING]
48
+ > [!IMPORTANT]
54
49
  > 本仓库的所有内容仅供学习和参考之用,禁止用于商业用途
55
50
  >
56
- > All contents in this repo are for learning and reference only and are not allowed to be used for commercial purposes.
51
+ > **音乐平台不易,请尊重版权,支持正版。**
57
52
 
58
53
  **文档**: <a href="https://luren-dc.github.io/QQMusicApi" target="_blank">https://luren-dc.github.io/QQMusicApi</a>
59
54
 
@@ -71,8 +66,6 @@ Description-Content-Type: text/markdown
71
66
 
72
67
  ## 依赖
73
68
 
74
- - ~~[AIOHTTP](https://docs.aiohttp.org/)~~
75
- - ~~[Requests](https://requests.readthedocs.io/)~~
76
69
  - [Cryptography](https://cryptography.io/)
77
70
  - [HTTPX](https://github.com/encode/httpx/)
78
71
 
@@ -100,18 +93,14 @@ async def main():
100
93
  asyncio.run(main())
101
94
  ```
102
95
 
103
- ## 参考项目
96
+ ## Licence
104
97
 
105
- ### API
106
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=Rain120&repo=qq-music-api)](https://github.com/Rain120/qq-music-api)
107
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=jsososo&repo=QQMusicApi)](https://github.com/jsososo/QQMusicApi)
98
+ 本项目基于 **[MIT License](https://github.com/luren-dc/QQMusicApi?tab=MIT-1-ov-file)** 许可证发行。
108
99
 
109
- ### QRC 解密
110
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=chenmozhijin&repo=LDDC)](https://github.com/chenmozhijin/LDDC)
100
+ ## 免责声明
111
101
 
112
- ### 项目架构
113
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=Nemo2011&repo=bilibili-api)](https://github.com/Nemo2011/bilibili-api)
102
+ 由于使用本项目产生的包括由于本协议或由于使用或无法使用本项目而引起的任何性质的任何直接、间接、特殊、偶然或结果性损害(包括但不限于因商誉损失、停工、计算机故障或故障引起的损害赔偿,或任何及所有其他商业损害或损失)由使用者负责
114
103
 
115
- ## Licence
104
+ ## 贡献者
116
105
 
117
- **[MIT License](https://github.com/luren-dc/QQMusicApi?tab=MIT-1-ov-file)**
106
+ [![Contributor](https://contrib.rocks/image?repo=luren-dc/QQMusicApi)](https://github.com/luren-dc/QQMusicApi/graphs/contributors)
@@ -1,32 +1,27 @@
1
1
  <div align="center">
2
- <h1> QQMusicApi </h1>
3
- <p> Python QQ音乐 API 封装库 </p>
4
- <a href="https://www.python.org">
5
- <img src="https://img.shields.io/badge/python-3.9|3.10|3.11|3.12-blue" alt="Python">
6
- </a>
7
- <a href="https://github.com/astral-sh/ruff">
8
- <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
2
+ <a>
3
+ <img src="https://socialify.git.ci/luren-dc/QQMusicApi/image?description=1&font=Source%20Code%20Pro&language=1&logo=https%3A%2F%2Fy.qq.com%2Fmediastyle%2Fmod%2Fmobile%2Fimg%2Flogo.svg&name=1&pattern=Overlapping%20Hexagons&theme=Auto">
9
4
  </a>
10
- <a href="https://pdm-project.org">
11
- <img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fpdm-project%2F.github%2Fbadge.json" alt="pdm-managed">
5
+ <a href="https://www.python.org">
6
+ <img src="https://img.shields.io/badge/Python-3.9|3.10|3.11|3.12-blue" alt="Python">
12
7
  </a>
13
8
  <a href="https://github.com/luren-dc/QQMusicApi?tab=MIT-1-ov-file">
14
- <img src="https://img.shields.io/github/license/luren-dc/PyQQMusicApi" alt="GitHub license">
9
+ <img src="https://img.shields.io/github/license/luren-dc/QQMusicApi" alt="GitHub license">
15
10
  </a>
16
11
  <a href="https://github.com/luren-dc/QQMusicApi/stargazers">
17
12
  <img src="https://img.shields.io/github/stars/luren-dc/QQMusicApi?color=yellow&label=Github%20Stars" alt="STARS">
18
13
  </a>
19
14
  <a href="https://github.com/luren-dc/QQMusicApi/actions/workflows/testing.yml">
20
- <img src="https://github.com/luren-dc/QQMusicApi/actions/workflows/testing.yml/badge.svg?branch=dev" alt="Testing">
15
+ <img src="https://github.com/luren-dc/QQMusicApi/actions/workflows/testing.yml/badge.svg?branch=main" alt="Testing">
21
16
  </a>
22
17
  </div>
23
18
 
24
19
  ---
25
20
 
26
- > [!WARNING]
21
+ > [!IMPORTANT]
27
22
  > 本仓库的所有内容仅供学习和参考之用,禁止用于商业用途
28
23
  >
29
- > All contents in this repo are for learning and reference only and are not allowed to be used for commercial purposes.
24
+ > **音乐平台不易,请尊重版权,支持正版。**
30
25
 
31
26
  **文档**: <a href="https://luren-dc.github.io/QQMusicApi" target="_blank">https://luren-dc.github.io/QQMusicApi</a>
32
27
 
@@ -44,8 +39,6 @@
44
39
 
45
40
  ## 依赖
46
41
 
47
- - ~~[AIOHTTP](https://docs.aiohttp.org/)~~
48
- - ~~[Requests](https://requests.readthedocs.io/)~~
49
42
  - [Cryptography](https://cryptography.io/)
50
43
  - [HTTPX](https://github.com/encode/httpx/)
51
44
 
@@ -73,18 +66,14 @@ async def main():
73
66
  asyncio.run(main())
74
67
  ```
75
68
 
76
- ## 参考项目
69
+ ## Licence
77
70
 
78
- ### API
79
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=Rain120&repo=qq-music-api)](https://github.com/Rain120/qq-music-api)
80
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=jsososo&repo=QQMusicApi)](https://github.com/jsososo/QQMusicApi)
71
+ 本项目基于 **[MIT License](https://github.com/luren-dc/QQMusicApi?tab=MIT-1-ov-file)** 许可证发行。
81
72
 
82
- ### QRC 解密
83
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=chenmozhijin&repo=LDDC)](https://github.com/chenmozhijin/LDDC)
73
+ ## 免责声明
84
74
 
85
- ### 项目架构
86
- [![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=Nemo2011&repo=bilibili-api)](https://github.com/Nemo2011/bilibili-api)
75
+ 由于使用本项目产生的包括由于本协议或由于使用或无法使用本项目而引起的任何性质的任何直接、间接、特殊、偶然或结果性损害(包括但不限于因商誉损失、停工、计算机故障或故障引起的损害赔偿,或任何及所有其他商业损害或损失)由使用者负责
87
76
 
88
- ## Licence
77
+ ## 贡献者
89
78
 
90
- **[MIT License](https://github.com/luren-dc/QQMusicApi?tab=MIT-1-ov-file)**
79
+ [![Contributor](https://contrib.rocks/image?repo=luren-dc/QQMusicApi)](https://github.com/luren-dc/QQMusicApi/graphs/contributors)
@@ -39,7 +39,7 @@ classifiers = [
39
39
  "Topic :: Software Development :: Libraries :: Python Modules",
40
40
  ]
41
41
  dynamic = []
42
- version = "0.1.10"
42
+ version = "0.1.11"
43
43
 
44
44
  [project.license]
45
45
  text = "MIT"
@@ -5,7 +5,7 @@ from .utils.credential import Credential
5
5
  from .utils.network import get_session, set_session
6
6
  from .utils.sync import sync
7
7
 
8
- __version__ = "0.1.10"
8
+ __version__ = "0.1.11"
9
9
 
10
10
  logger = logging.getLogger("qqmusicapi")
11
11
 
@@ -186,7 +186,6 @@ class Api:
186
186
  },
187
187
  }
188
188
 
189
- self.method = "POST"
190
189
  self.json_body = True
191
190
  self.params.clear()
192
191
 
@@ -222,7 +221,7 @@ class Api:
222
221
 
223
222
  config = {
224
223
  "url": self.url,
225
- "method": self.method,
224
+ "method": self.method if not self.module else "POST",
226
225
  "params": self.params,
227
226
  "headers": self.headers,
228
227
  }