-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
v2.7.0: 新增 async 异步版全套 API; 支持 html 正则解析失败时自动保存网页代码,方便排查; 新增异步vs同步性能 Benchmark; 优化文档。 (#542) #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8bf8673
feat: 新增 FLAG_DUMP_HTML_ON_REGEX_ERROR,支持正则匹配异常时持久化响应文本到文件
hect0x7 83b61f8
docs: 更新自定义下载文件夹名语法教程 (f-string)
hect0x7 23cd3bf
Update 13_export_and_feature.md
hect0x7 d0c8999
async支持
hect0x7 5b6ae37
fix tests
hect0x7 e80054a
fix tests
hect0x7 fed86ed
fix tests
hect0x7 f943138
async docs
hect0x7 2254938
async support
hect0x7 9bee65b
test: fix test_async_search_generator event loop conflict
hect0x7 2a606b9
perf: update benchmark script to support threadpool query and memory …
hect0x7 4b52d65
test: refine exception handling in async tests to strictly propagate …
hect0x7 357d865
rename
hect0x7 4c80c30
fix: 修复 PR#542 最后一轮 CodeRabbit Review 反馈
hect0x7 608b6a2
pr fix
hect0x7 eb32a81
test fix
hect0x7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: Async Benchmark | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - '**/*async*.py' | ||
| - '.github/workflows/benchmark.yml' | ||
| pull_request: | ||
| branches: [ main, master ] | ||
| paths: | ||
| - '**/*async*.py' | ||
| - '.github/workflows/benchmark.yml' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| benchmark: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements-dev.txt | ||
| pip install -e . | ||
|
|
||
| - name: Run Performance Benchmark | ||
| env: | ||
| PYTHONPATH: ${{ github.workspace }}/src | ||
| no_proxy: '*' | ||
| run: python usage/benchmark_async_vs_sync.py | ||
|
|
||
| - name: Publish Report to Step Summary | ||
| if: always() | ||
| run: | | ||
| if [ -f PERFORMANCE_REPORT.md ]; then | ||
| cat PERFORMANCE_REPORT.md >> $GITHUB_STEP_SUMMARY | ||
| else | ||
| echo "❌ PERFORMANCE_REPORT.md not generated" >> $GITHUB_STEP_SUMMARY | ||
| fi | ||
|
|
||
| - name: Upload Benchmark Report | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: benchmark-report | ||
| path: PERFORMANCE_REPORT.md | ||
| if-no-files-found: warn | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,13 @@ | ||
| # 项目更新计划 | ||
|
|
||
| | 版本范围 | 更新计划 | | ||
| |:--------:|:-----------------------------------------:| | ||
| | v2.6.* | 实现移动端API域名自动更新,支持Zip加密/PDF密码/路径繁简转换/封面下载。 | | ||
| | v2.5.* | 引入新插件`jm-server`,实现基于浏览器观看本地本子。 | | ||
| | v2.4.* | 项目实现基本稳定,进入维护期,按需增加功能。 | | ||
| | v2.3.* | 实现移动端API的基础功能,统一HTML和API的实现。 | | ||
| | v2.2.* | 新的插件体系,新的命令行调用,完善搜索功能。 | | ||
| | v2.1.* | 拆分Downloader抽象调度,优化可扩展性、代码复用性、模块级别自定义。 | | ||
| | v2.0.* | 重新设计合理的抽象层次,实现请求重试切换域名机制,新的option配置设计。 | | ||
| | v1.\*.\* | 基于HTML实现基础功能。 | | ||
| | 版本范围 | 更新计划 | | ||
| |:--------:|:---------------------------------------------------:| | ||
| | v2.7.* | 支持 Async,命令行拓展 | | ||
| | v2.6.* | 实现移动端API域名自动更新,支持Zip加密/PDF密码/路径繁简转换/封面下载。Feature 特性 | | ||
| | v2.5.* | 引入新插件`jm-server`,实现基于浏览器观看本地本子。 | | ||
| | v2.4.* | 项目实现基本稳定,进入维护期,按需增加功能。 | | ||
| | v2.3.* | 实现移动端API的基础功能,统一HTML和API的实现。 | | ||
| | v2.2.* | 新的插件体系,新的命令行调用,完善搜索功能。 | | ||
| | v2.1.* | 拆分Downloader抽象调度,优化可扩展性、代码复用性、模块级别自定义。 | | ||
| | v2.0.* | 重新设计合理的抽象层次,实现请求重试切换域名机制,新的option配置设计。 | | ||
| | v1.\*.\* | 基于HTML实现基础功能。 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -140,7 +140,6 @@ plugins: | |
| filename_rule: Atitle | ||
| - plugin: zip # 合并为压缩文件 | ||
| kwargs: | ||
| level: album | ||
| zip_dir: ./output | ||
| ``` | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.