Metadata-Version: 2.4
Name: txwrap
Version: 1.0.0
Summary: Small helpers around the stdlib textwrap module: terminal-aware wrapping, column alignment, and simple CLI formatting.
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-python
Dynamic: summary

# txwrap

Thin utilities on top of Python's `textwrap` and `shutil.get_terminal_size`:

- **format_block** — wrap text to terminal width (or a fixed width) with optional indent
- **align_columns** — pad list items into aligned columns
- **dedent** / **fill** — thin wrappers around `textwrap.dedent` / `textwrap.fill`
- **format_header** / **format_status** — simple CLI banners and status lines

## Installation

```bash
pip install txwrap
```

## Usage

```python
from txwrap import format_block, align_columns, format_header

print(format_block("Long line of text...", indent=2))
print(align_columns(["a", "bb", "ccc"]))
print(format_header("Done"))
```
