Skip to main content
NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-Fix-QQ-Img-SSL

✨ 修复访问 QQ 图床的 SSL 错误 ✨

python pdm-managed wakatime
Pydantic Version 1 Or 2 license pypi pypi download
NoneBot Registry Supported Adapters

📖 介绍

插件工作原理:

  • 对 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)

Source distribution for nonebot-plugin-fix-qq-img-ssl 0.1.1
File Size Uploaded
nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-fix-qq-img-ssl 0.1.1
File Interpreter ABI Platform
nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page