pyfreedom
librespot-python 的 protobuf 6.x 兼容分支。
解决的问题
原版 librespot 的 _pb2.py 由 protoc 3.x 生成,强制依赖 protobuf==3.20.1。这与 pywidevine、votify 等需要 protobuf>=6.x 的工具冲突,无法共存于同一 Python 环境。
pyfreedom 用 protoc 33.4 重新生成了全部 35 个 proto 文件,兼容 protobuf 6.x。
安装
pip install pyfreedom
与 pywidevine 共存(不再需要独立 venv):
pip install pyfreedom pywidevine
使用
from pyfreedom.core import Session
from pyfreedom.audio.format import SuperAudioFormat
与原版的区别
| librespot | pyfreedom | |
|---|---|---|
| protobuf | ==3.20.1 | >=6.0 |
| pywidevine 共存 | 冲突 | 兼容 |
| 功能 | 相同 | 相同 |
| import name | librespot |
pyfreedom |
许可证
Apache-2.0(继承自原项目)
Metadata
Release files for pyfreedom 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyfreedom-0.1.0.tar.gz | 72.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyfreedom-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 177.2 kB
Release files / pyfreedom-0.1.0.tar.gz
| Download URL | pyfreedom-0.1.0.tar.gz |
|---|---|
| Size | 72.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0351e6d4c20da273fb0239fbc934a8512d0ca400c7f79a0e55c46d23257f7178
|
|
BLAKE2b-256 checksum How to use checksums |
e2c7f55c6ffe37722badc00c27b0f80f13e06547c76e1bc15a38f094a192bf55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / pyfreedom-0.1.0-py3-none-any.whl
| Download URL | pyfreedom-0.1.0-py3-none-any.whl |
|---|---|
| Size | 105.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
227c110450c59d2125a814802a99b2f0cba15c7879a94e284990e83f2a607c1b
|
|
BLAKE2b-256 checksum How to use checksums |
b555cbf8e4d54024defeea721ee52a14dd28b11080987ce480d22c74865752e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|