Skip to main content

Fix QQ image hosting SSL issue

Project description

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 支持

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for nonebot_plugin_fix_qq_img_ssl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8b13d43e945bcd82a2b15b6a40c556cdef457c53e29f5af1b390b61b25a3dd57
MD5 4dd5f23cc4c8acca41df730d3f8a4737
BLAKE2b-256 25ff2e900262ba0ea706897b230eb2bb7b65054384c53f0192e98a8fd2cfaa8b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_fix_qq_img_ssl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78bac28c1e955812e3ddc76da466cbea36f9e42c6fe8d6fc9016efbf2d0ed7a6
MD5 7f63ac2fa170610f5a99a4d62e49a5e7
BLAKE2b-256 cced49eaf7848320f188587a93aa777f7830d302d7b398fe9ba38da40277c0e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page