PyUtilScripts
PyUtilScripts 是一个基于 Python 的通用小工具集合,目标是提供编写通用任务的辅助工具。
📦 安装
通过 pip 安装
pip install pyutilscripts
从源码安装
git clone https://github.com/ZeroKwok/PyUtilScripts.git
cd PyUtilScripts
pip install .
📝 使用说明
-
fcopy
- 基于清单文件的复制工具
- 特点
- 支持 更新、覆盖写、重命名模式
- 支持 交互模式,精准把控拷贝细节(拷贝前生成行动列表,在用户编辑或确认后,才具体执行行动列表中记录的动作)
- 支持 过滤模式,忽略某些文件或目录
- 示例:
- 按文件清单拷贝指定目录下的文件
- 更新模式
fcopy -l /path/to/list.txt -s /path/to/src -t /path/to/dest - 覆盖模式
fcopy -l /path/to/list.txt -s /path/to/src -t /path/to/dest -m o - 重命名模式
fcopy -l /path/to/list.txt -s /path/to/src -t /path/to/dest -m r
- 更新模式
- 通过指定目录下的文件生成文件清单
fcopy -l /path/to/list.txt -s /path/to/src --update-list
- 交互模式下拷贝指定目录的文件
fcopy -l /path/to/list.txt -s /path/to/src -t /path/to/dest -i
- 按文件清单拷贝指定目录下的文件
- 概念
- 文件清单(fcopy.list)决定要拷贝的文件
- 行动清单决定拷贝行为(交互模式下通过编辑器呈现)
-
prunedirs
- 递归删除空目录
- 示例:
prunedirs /path/to/dir
-
forward.tcp
- TCP 端口转发工具
- 示例:
forward.tcp -s 0.0.0.0:8081 -d 127.0.0.1:1081
Metadata
Release files for pyutilscripts 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyutilscripts-0.10.0.tar.gz | 24.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyutilscripts-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.7 kB
Release files / pyutilscripts-0.10.0.tar.gz
| Download URL | pyutilscripts-0.10.0.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b37c1b84ebbda169ba67786b264de5d2a61b84829fb6ed6faa008b9c544362e3
|
|
BLAKE2b-256 checksum How to use checksums |
ca16d3c413cd349644de917b37abe21892c63470c7517b0a68b52b2e9a28c331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency logRelease files / pyutilscripts-0.10.0-py3-none-any.whl
| Download URL | pyutilscripts-0.10.0-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14c57ca1738c5234c8cce001455d09fd463c3992cec389c996c9738a3c1e243e
|
|
BLAKE2b-256 checksum How to use checksums |
d4087d9779cbacab7cad41a6aeda23c6cdc4235f1c215c823e506b273be02885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency log