danmu-abc
获取哔哩哔哩直播、斗鱼直播、虎牙直播以及 个人项目 YjMonitor 自定义的弹幕推送,详细可见 examples 部分。可选用 websocket 协议与 tcp 协议,其中 websocket 协议使用了 aiohttp 的 api。
接口:
- run_forever 是程序核心,使用一个
while循环实现掉线的自动重连(掉线后,close掉现在的连接,重开一个新的)。每次的连接分三步,建立并OAUTH(即 _one_hello)、心跳和接受部分启动并永久执行直到异常或主动关闭、异常或主动关闭后的清理工作。清理完后,重新开启新的连接。 - close_and_clean 用于永久地关闭连接。
- pause 用于暂停连接,暂停后,连接是断开的。直到 resume 唤醒。
版权问题:
Metadata
Release files for danmu-abc 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| danmu_abc-0.1.5.tar.gz | 5.6 kB | Without provenance | Details for danmu_abc-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| danmu_abc-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for danmu_abc-0.1.5-py3-none-any.whl |
Total release size: 12.4 kB
Release files / danmu_abc-0.1.5.tar.gz
| Download URL | danmu_abc-0.1.5.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57e489d7b55f238e2c0b2ddf4167ea2d6a20072402901469bcf0feaa5cf7f14a
|
|
BLAKE2b-256 checksum How to use checksums |
b202a4ac238154f0dd17f7fa0266b8781f4db1dcf938b9a10e83c6aa6d30ee3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / danmu_abc-0.1.5-py3-none-any.whl
| Download URL | danmu_abc-0.1.5-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
359c5eda0c92bfc437342be84a19d3129994c409fcd36978b0d032cb92e943ae
|
|
BLAKE2b-256 checksum How to use checksums |
17ed154b9c82b9fde89771b036a75e24d57874bfec4a0ec2cf0b3a0825ae19c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Security for danmu-abc 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.