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.3.tar.gz (7.0 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.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hsutools-1.0.3.tar.gz
  • Upload date:
  • Size: 7.0 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.3.tar.gz
Algorithm Hash digest
SHA256 dbda23e735007648c3957c6f72bbce325674edee5834b863610aaea4e6b0dbe3
MD5 9880bf2cc0192669e6cd5f867121586d
BLAKE2b-256 d7efd03e11e831914f38d99ec210d8abbce6719b7fe395fa8704633cc65216e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hsutools-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7baeb97cac102d1ac267eacf96362b2c58c008c896a6e4c73f70f686bb6f30
MD5 f50b3cdbf3e4ac6e9069d8db839b55c7
BLAKE2b-256 86330a53d8cbe32ef94c6b5871093a48e26c0d1564ee8f2f6c58a8d20b1b8e31

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