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-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

hsutools-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hsutools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dee1a6d444b07764796e9d6876408e224ce9b959f32475168f3bc8e98b20d370
MD5 102551a38eee9543122c6e5ca85ed93e
BLAKE2b-256 7919a173e4589be03cdc31e0ad79d7be7cb805fb28c5cd8f2a697e004f0000fe

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hsutools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 142535e0445ee6c28b9c3d8f4cc4a01e9efe3f35279e700297c82133040ab161
MD5 67ff27f8fba49d67d620a4864c5d3240
BLAKE2b-256 fc7dedcb6d60acb5eddee42c15782879ddde870905e4c8e4fbd87ba0d793437b

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