Skip to main content

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)

pipx 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 build-exe [--extra-arg "--onefile"] (requires pyinstaller in 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 (requires PYPI_API_TOKEN secret), 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

hsutools-1.0.4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

hsutools-1.0.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file hsutools-1.0.4.tar.gz.

File metadata

  • Download URL: hsutools-1.0.4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hsutools-1.0.4.tar.gz
Algorithm Hash digest
SHA256 8d871d71925aacc802266fab2812ddaa8047b290ffb1e9bf384417bbab3824dd
MD5 0b9121e35f30e282e061af8086e93ac6
BLAKE2b-256 4ca20e13a01c5ae022c95ada9067f35a187387922d790dcc429b08f8388312ee

See more details on using hashes here.

File details

Details for the file hsutools-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: hsutools-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hsutools-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cb515b10ce3351ca73904d25424a4bec4904ae9367de3597b3ebe6653054d39e
MD5 e423f0e361ee42b197012d35d25dd506
BLAKE2b-256 8265fedcb522ac10b6022b31d3cf775052dc8dc3dbc02292d357c21f7c9a6b55

See more details on using hashes here.

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