Fix QQ image hosting SSL issue
Project description
📖 介绍
插件工作原理:
- 对
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 支持
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b13d43e945bcd82a2b15b6a40c556cdef457c53e29f5af1b390b61b25a3dd57
|
|
| MD5 |
4dd5f23cc4c8acca41df730d3f8a4737
|
|
| BLAKE2b-256 |
25ff2e900262ba0ea706897b230eb2bb7b65054384c53f0192e98a8fd2cfaa8b
|
File details
Details for the file nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78bac28c1e955812e3ddc76da466cbea36f9e42c6fe8d6fc9016efbf2d0ed7a6
|
|
| MD5 |
7f63ac2fa170610f5a99a4d62e49a5e7
|
|
| BLAKE2b-256 |
cced49eaf7848320f188587a93aa777f7830d302d7b398fe9ba38da40277c0e5
|