Metadata-Version: 2.1
Name: texttool
Version: 0.0.3
Summary: Library for wrapping text to widths
Home-page: https://github.com/dantechguy/texttool
Author: Dan W-B
Author-email: d@nielwb.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# textwrapper

## Installation

`pip install texttool`

## Function signature
```py
def wrap(
        # the text to wrap
        text,
        
        # a line's minimum width before wrapping
        min_width=1,
        
        # the max width of lines. default is shell width
        max_width=shutil.get_terminal_size().columns,
        
        # number of columns to pad off of max_width
        padding_size=0,
        
        # a string to start all wrapped lines with
        prefix='',
        
        # a string to end all lines which wrap with
        suffix='',
        
        # string of characters, in priority order, to wrap on
        delimiters=' ,.!',
        ):
```

## Usage

```py
import texttool

texttool.wrap('Lorem ipsum dolor sit amet.', max_width=6)
```

```
Hi
there,
 nice
to
foo
your
bar.
```


