PyUtilScripts 是一个基于 Python 的通用小工具集合,目标是提供编写通用任务的辅助工具。
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyutilscripts-0.9.0.tar.gz.
File metadata
- Download URL: pyutilscripts-0.9.0.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e733e3d06ba8098581631fa65442cb3aa02e68eb882cca1297ce672234cadf
|
|
| MD5 |
0e840c515566d64ff0226481cf3d43eb
|
|
| BLAKE2b-256 |
4c0c3d484aac80f614c1484e63443a5e79141d3a63e7099db07d0d6e538b251d
|
Provenance
The following attestation bundles were made for pyutilscripts-0.9.0.tar.gz:
Publisher:
python-publish.yml on ZeroKwok/PyUtilScripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyutilscripts-0.9.0.tar.gz -
Subject digest:
a2e733e3d06ba8098581631fa65442cb3aa02e68eb882cca1297ce672234cadf - Sigstore transparency entry: 781993959
- Sigstore integration time:
-
Permalink:
ZeroKwok/PyUtilScripts@40333ba3d6b1788c2581b5a837ef889101b5e113 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/ZeroKwok
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@40333ba3d6b1788c2581b5a837ef889101b5e113 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyutilscripts-0.9.0-py3-none-any.whl.
File metadata
- Download URL: pyutilscripts-0.9.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c49573a8304bcf810ded8765c55a17b7cfe7cb7429a586c19305361901c5c37
|
|
| MD5 |
1ff0bb94fa07dad5ef7ed6cc2cbcae8d
|
|
| BLAKE2b-256 |
b0c166c8de1dcfb1e525612511be4e06baddefc2ddcec25896f4c2c8bc51a4dd
|
Provenance
The following attestation bundles were made for pyutilscripts-0.9.0-py3-none-any.whl:
Publisher:
python-publish.yml on ZeroKwok/PyUtilScripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyutilscripts-0.9.0-py3-none-any.whl -
Subject digest:
8c49573a8304bcf810ded8765c55a17b7cfe7cb7429a586c19305361901c5c37 - Sigstore transparency entry: 781993962
- Sigstore integration time:
-
Permalink:
ZeroKwok/PyUtilScripts@40333ba3d6b1788c2581b5a837ef889101b5e113 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/ZeroKwok
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@40333ba3d6b1788c2581b5a837ef889101b5e113 -
Trigger Event:
release
-
Statement type: