Lightweight collection of commonly used Python development utilities and small helper tools for typing, result types, parallel operations, logging, etc.
pytools.array— convenient generic typing shortcuts for NumPy arrays (e.g., A1[T], shape-aware aliases) and lightweight helpers for type-safe array operationspytools.init_module— utilities and a small CLI to scaffold/populate new Python submodules with sensible default files and layout.pytools.logging— light weight feature full logger that requires less setup than stdlibpytools.parallel— simple concurrency helpers (thread/process pools, task orchestration).pytools.parsing— factory class for converting argparse to enums or other typespytools.path— Quick tools for iterating on pathspytools.plotting— Provides a typed interface formatplotlibpytools.progress— Simple independent progress barpytools.result— Result/Option types (Ok/Err) for error handling and propagation without raising
Features:
- Populate all and basic docstring stubs; optional type stub/py.typed.
- CLI: see
python -m pytools.init_module -hFrom source only
pip install "pytools@git+https://github.com/willwiz/pytools@v1.1"MIT — see LICENSE file
Use the repository issue tracker for questions and bug reports.