Skip to main content

zxtoolbox

A collection of tools for frequently performed repetitive tasks on Windows, Mac, and Linux systems

English | Chinese

0x01. Install

uv tool install zxtoolbox

0x02. Common Commands

Markdown to PDF

# Convert a single Markdown file
zxtool mkpdf ./README.md

# Merge a Markdown directory into one PDF
zxtool mkpdf ./docs -o ./dist/docs.pdf

Notes:

  • Supports common Markdown styling: headings, lists, tables, blockquotes, code blocks, and images
  • In directory mode, it reads README.md by default, or a custom entry file via --file
  • Mermaid is bundled locally by default, so offline rendering works without a CDN
  • A local Edge, Chrome, or Chromium installation is required for headless PDF printing

Full usage is documented in docs/mkpdf_manager.md.

0x03. Directory Structure

toolbox/
├── doc/                    # Documentation directory
│   ├── index.md           # Project documentation
│   ├── computer_info.md   # Computer information retrieval documentation
│   ├── config_manager.md  # Configuration file management documentation
│   ├── git_config.md      # Git repository configuration documentation
│   ├── letsencrypt.md     # Let's Encrypt certificate documentation
│   ├── mkdocs_manager.md  # MkDocs project management documentation
│   ├── ssl_cert.md        # SSL certificate generation documentation
│   ├── video_audio.md    # Video audio extraction documentation
│   ├── disk_manager.md   # Disk analysis and cleanup documentation
│   └── devp_manager.md   # Dev toolchain management: init, inventory, mise install, adopting existing tools, unifying package dirs
├── src/                   # Source code directory
│   └── zxtoolbox/         # Main package
│       ├── __init__.py    # Package initialization
│       ├── cli.py         # Command-line entry point
│       ├── computer_info.py    # Computer information retrieval
│       ├── config_manager.py   # Configuration file management
│       ├── git_config.py       # Git repository configuration management
│       ├── letsencrypt.py      # Let's Encrypt certificate management
│       ├── mkdocs_manager.py   # MkDocs project config generation / build
│       ├── pyopt_2fa.py        # 2FA tool
│       ├── ssl_cert.py         # SSL certificate generation
│       ├── video_audio.py     # Audio extraction from video (single file / batch directory)
│       ├── disk_manager.py     # Disk analysis and cache cleanup
│       ├── devp_manager.py     # Dev toolchain management: init, inventory, mise install, adopt, redirect (backend: mise)
│       └── test/          # Test directory
├── pyproject.toml        # Project configuration and dependencies
├── README.md             # Project description
└── uv.lock               # uv locked dependency versions

0x04. Dependencies

Core Dependencies

Package Purpose Website
click Command-line parsing click.palletsprojects.com
paramiko SSH connections paramiko.org
prettytable Table formatting github.com
psutil System information psutil.readthedocs.io
py-cpuinfo CPU information github.com
nvidia-ml-py NVIDIA GPU information github.com
pyotp 2FA one-time passwords github.com
yt-dlp Video downloading github.com
pyyaml YAML parsing pyyaml.org
acme ACME protocol (Let's Encrypt) github.com
cryptography Cryptographic functions cryptography.io
requests HTTP requests requests.readthedocs.io
mkdocs Documentation site building mkdocs.org
mkdocs-smzhbook-theme MkDocs theme github.com
Markdown Markdown rendering python-markdown.github.io

0x05. Running Unit Tests

The project uses pytest as the testing framework. Test files are located in the src/zxtoolbox/test/ directory.

Install Test Dependencies

uv add --dev pytest

Run All Tests

uv run pytest src/zxtoolbox/test/ -v

Run Single Test File

uv run pytest src/zxtoolbox/test/test_cli.py -v

Run Specific Test Class or Method

# Run specific test class
uv run pytest src/zxtoolbox/test/test_cli.py::TestCliGit -v

# Run specific test method
uv run pytest src/zxtoolbox/test/test_cli.py::TestCliGit::test_git_config_check -v

View Test Coverage

uv add --dev pytest-cov
uv run pytest src/zxtoolbox/test/ --cov=zxtoolbox --cov-report=term-missing

Metadata

Release files for zxtoolbox 1.13.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zxtoolbox 1.13.13
File Size Uploaded Provenance Actions
zxtoolbox-1.13.13.tar.gz 1.2 MB Without provenance Details for zxtoolbox-1.13.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zxtoolbox 1.13.13
File Interpreter ABI Platform Actions
zxtoolbox-1.13.13-py3-none-any.whl Python 3 none any Details for zxtoolbox-1.13.13-py3-none-any.whl

Total release size: 2.4 MB

Release files / zxtoolbox-1.13.13.tar.gz

Download URL zxtoolbox-1.13.13.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
e027fc716c115c06b9468628bf6b3b8563777ec1d526f7ba43ec0b5e4cbe3e8a
BLAKE2b-256 checksum
How to use checksums
17109e3df209a85d9f16358aa52326f61d0a6556dc5064986830ea97672fe9a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.6

Release files / zxtoolbox-1.13.13-py3-none-any.whl

Download URL zxtoolbox-1.13.13-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
65dd670baa650824f2d2e8d84b99373d3b722b5387b6eee0904e0ba8486d40d4
BLAKE2b-256 checksum
How to use checksums
202dde199f3e3be405edd0c6848817c9b1251e6c5e9fafbb76eccf7d875a6dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.6

Security for zxtoolbox 1.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page