Utilities for directory readme generation, file management, renaming, and docx to pdf conversion.
Project description
hsutools
Utilities for generating folder README trees, categorizing files, batch renaming, and converting docx to pdf. The project now uses a standard src/hsutools package layout, Typer for the CLI, and Poetry for dependency management.
Install
With Poetry (local dev)
pip install poetry
poetry install
poetry run hsu --help
From PyPI (after release)
pip install hsutools
hsu --help
With pipx from the repo
pipx install .
hsu --help
CLI usage
hsu cpath --path <dir> [--max-depth 3] [--ignore name ...]hsu filem --path <dir> --mode {date|prefix|suffix} [--prefix PREFIX]hsu rename --path <dir> --find old --replace new [--include-dirs]hsu topdf --path <dir> [--ignore name ...]hsu resize --path <dir> [--width 1920] [--height ...] [--format webp] [--recursive]hsu --lang zh --help切換繁體說明;亦可用環境變數HSU_LANG=zh做預設hsu build-exe [--extra-arg "--onefile"](requirespyinstallerin the Poetry dev group)
Development
- Run tests:
poetry run pytest - Build artifacts:
poetry build - Optional exe:
poetry run hsu build-exe - Release: tag
v*.*.*and GitHub Actions will build wheel/sdist, publish to PyPI (requiresPYPI_API_TOKENsecret), and attach artifacts (wheel/sdist + Windows exe) to the GitHub Release.
Project structure
hsutools/
├── pyproject.toml
├── src/hsutools/
│ ├── cli.py
│ ├── config.py
│ ├── utils.py
│ └── core/
│ ├── create_path.py
│ ├── docx_to_pdf.py
│ ├── file_manage.py
│ └── file_renamer.py
└── tests/
└── test_cli.py
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
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 hsutools-1.1.0.tar.gz.
File metadata
- Download URL: hsutools-1.1.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd5653e44188aa30133263c9229d8c19b606f798b6d0a9bdbaec0d50cd8ebc6
|
|
| MD5 |
e36a884033b7964905e4360abbbb3fc9
|
|
| BLAKE2b-256 |
2ccb2d4866b26544847056130f72d08c10b337b0986ad656336ca297f26d647f
|
File details
Details for the file hsutools-1.1.0-py3-none-any.whl.
File metadata
- Download URL: hsutools-1.1.0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2726c5a8c2475c50a0c115d47a25080e4dff926226e1f5a76ddb88abe33ed9c1
|
|
| MD5 |
d2064cd8a6ff51261ad556bc52d582c2
|
|
| BLAKE2b-256 |
e56264266e99cf21aca61c64da6272dba6ab0ad9a1807bd4f4e96afeba9cac06
|