Metadata-Version: 2.4
Name: center-text
Version: 0.1.0
Summary: Function to center text in the terminal
Author-email: Oak_lod <un_released@outlook.com>
Requires-Python: >=3.3
Description-Content-Type: text/markdown
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
License-File: LICENSE
Project-URL: Homepage, https://codeberg.org/Oak_lod/center-text
Project-URL: Repository, https://codeberg.org/Oak_lod/center-text.git

# center-text

**Python** module to center text in the terminal.

This is my first Python module ever, so it's also where I learned to create modules for `pypi`, and was more so a learning experience than anything.

## Installation

Install the package directly from PyPI using `pip`:

```bash
pip install center-text
```

## Usage

```python
from center import center_text

# Center text using standard spaces
center_text('Hello, World!')

# Center text using custom padding characters
center_text(' wow ', pad_str='~')
center_text(' casino ', pad_str=' 777 ')
```

## Features

- Auto-detects terminal width
- Supports custom padding strings of any length
- Forwards standard `end` and `flush` parameters to the underlying `print()` function.
- Compatible with Python 3.3+

## License

Licensed under the GNU Affero General Public License, or AGPL.
