Skip to main content

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


Download files

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

Source Distribution

pyutilscripts-0.8.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

pyutilscripts-0.8.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file pyutilscripts-0.8.0.tar.gz.

File metadata

  • Download URL: pyutilscripts-0.8.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyutilscripts-0.8.0.tar.gz
Algorithm Hash digest
SHA256 17a00cbc11ec50fa0cd6170d07a208cf7eaac97e4df344b50f68cebff506e733
MD5 57162bb46e00ec31a6626fb1f72ebee1
BLAKE2b-256 15033e2efd5e1e3eb5e022b547e1ac8320a59195452e84ab1f8dc66a7de7c7fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyutilscripts-0.8.0.tar.gz:

Publisher: python-publish.yml on ZeroKwok/PyUtilScripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyutilscripts-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: pyutilscripts-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyutilscripts-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f07696c5e055ad5e391e0d6134d5304dd2b16cbdd23e323534ac27344f207f2
MD5 e8c9d7689884d44b08d69ca454b055ea
BLAKE2b-256 a5e325bd0ba9ddb64d73da3542ab05e1311913c9914d7b595c3aeca403f945fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyutilscripts-0.8.0-py3-none-any.whl:

Publisher: python-publish.yml on ZeroKwok/PyUtilScripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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