📖 介绍
插件工作原理:
- 对
httpx.AsyncClient的__init__方法进行 Monkey Patch,在未提供自定义SSLContext时,使用 httpx 的默认创建函数创建一个,并设置加密套件。 - 修改
aiohttp的两个全局SSLContext加密套件。
💿 安装
以下提到的方法 任选其一 即可
[推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-fix-qq-img-ssl
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-fix-qq-img-ssl
pdm
pdm add nonebot-plugin-fix-qq-img-ssl
poetry
poetry add nonebot-plugin-fix-qq-img-ssl
conda
conda install nonebot-plugin-fix-qq-img-ssl
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分的 plugins 项里追加写入
[tool.nonebot]
plugins = [
# ...
"nonebot_plugin_fix_qq_img_ssl"
]
⚙️ 配置
没有
🎉 使用
加载即有效,快来试试吧
📞 联系
QQ:3076823485
Telegram:@lgc2333
吹水群:1105946125
邮箱:lgc2333@126.com
💡 鸣谢
LagrangeDev/Lagrange.Core/issues/315
💰 赞助
感谢大家的赞助!你们的赞助将是我继续创作的动力!
📝 更新日志
0.1.1
- 重构 httpx 的 Monkey Patch,在提供自定义 SSLContext 时不进行修改
- 新增 aiohttp 支持
Metadata
Release files for nonebot-plugin-fix-qq-img-ssl 0.1.1
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 |
|---|---|---|---|---|
| nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl |
Total release size: 9.3 kB
Release files / nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz
| Download URL | nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b13d43e945bcd82a2b15b6a40c556cdef457c53e29f5af1b390b61b25a3dd57
|
|
BLAKE2b-256 checksum How to use checksums |
25ff2e900262ba0ea706897b230eb2bb7b65054384c53f0192e98a8fd2cfaa8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1014-azure
|
Release files / nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl
| Download URL | nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78bac28c1e955812e3ddc76da466cbea36f9e42c6fe8d6fc9016efbf2d0ed7a6
|
|
BLAKE2b-256 checksum How to use checksums |
cced49eaf7848320f188587a93aa777f7830d302d7b398fe9ba38da40277c0e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1014-azure
|
Security for nonebot-plugin-fix-qq-img-ssl 0.1.1
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.