Skip to main content

ms-toolbox

MatsubaraSoda 个人工具箱

安装

需要 Python 3.12+。推荐使用 uv 安装为全局命令行工具:

# 从 PyPI 安装(推荐)
uv tool install ms-toolbox

工具列表

安装 ms-toolbox 后,下列命令均可直接使用;完整参数以各命令的 --help 输出为准。

pdf-extract — 提取 PDF 的指定页码范围,另存为新文件

pdf-extract -i input.pdf -o output.pdf --start 5 --end 10

把 input.pdf 的第 5 页到第 10 页(含首尾)保存为 output.pdf,成功时退出码为 0。

参数 必填 说明
-i, --input 是 输入 PDF 文件路径
-o, --output 是 输出 PDF 文件路径
--start 是 起始页码(1 起始,包含该页)
--end 是 结束页码(包含该页)

退出码:0 成功;1 提取失败;2 意外错误。

--- 正在启动 PDF 提取工具 ---
输入文件:input.pdf
输出文件:output.pdf
页码范围:5 到 10
成功提取第 5 页到第 10 页,并保存到 'output.pdf'。

本地开发

git clone https://github.com/MatsubaraSoda/ms-toolbox
cd ms-toolbox
uv sync             # 创建虚拟环境并安装依赖(含开发依赖)
uv run pytest -v    # 运行测试

许可证

本项目基于 MIT License 发布。

Metadata

Release files for ms-toolbox 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 ms-toolbox 0.1.1
File Size Uploaded Provenance Actions
ms_toolbox-0.1.1.tar.gz 4.2 kB With provenance Details for ms_toolbox-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ms-toolbox 0.1.1
File Interpreter ABI Platform Actions
ms_toolbox-0.1.1-py3-none-any.whl Python 3 none any Details for ms_toolbox-0.1.1-py3-none-any.whl

Total release size: 9.8 kB

Release files / ms_toolbox-0.1.1.tar.gz

Download URL ms_toolbox-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d612e5c691cce43947afb8694880c9baedba11fd26456c7e683e5a74c6fe33a8
BLAKE2b-256 checksum
How to use checksums
61c3a28bca58ec03edca9100a208bb47259e94565b23618268e8684b2c07595f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / ms_toolbox-0.1.1-py3-none-any.whl

Download URL ms_toolbox-0.1.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc2f222f149b2357a43a3dd2d6e9c86cc06113904123e26b0afa65a8b13409ce
BLAKE2b-256 checksum
How to use checksums
f52f970ec51067c249687400847d35eb6a0bdfb7983a8510e985f3a748663024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for ms-toolbox 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ms_toolbox-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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