Metadata-Version: 2.4
Name: pyreprint
Version: 0.1.0
Summary: Enhanced print() with decorators, formatting, and style patterns
Project-URL: Homepage, https://github.com/ColinConwell/PyRePrint
Project-URL: Documentation, https://colinconwell.github.io/PyRePrint
Project-URL: Repository, https://github.com/ColinConwell/PyRePrint
Project-URL: Issues, https://github.com/ColinConwell/PyRePrint/issues
Author-email: Developer <developer@dev.com>
License-Expression: GPL-3.0-or-later
License-File: LICENSE
Keywords: decorators,formatting,jupyter,output,print,rich,terminal
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Framework :: Jupyter
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0.0
Requires-Dist: tomli>=2.0.0; python_version < '3.11'
Provides-Extra: dev
Requires-Dist: black>=23.0; extra == 'dev'
Requires-Dist: mkdocs-material>=9.0; extra == 'dev'
Requires-Dist: mkdocs>=1.5; extra == 'dev'
Requires-Dist: mkdocstrings[python]>=0.24; extra == 'dev'
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# PyRePrint

Enhanced `print()` with decorators, formatting, and style patterns.

## Installation

```bash
pip install pyreprint
```

## Quick Start

```python
from pyreprint import reprint

# Standard print behavior
reprint("Hello, World!")

# With decorators
reprint("Section Title", before="=", after="=", width=40)
# ========================================
# Section Title
# ========================================

# Using styles
reprint("Important!", style="banner", width=40)
# ****************************************
# *             Important!               *
# ****************************************
```

## Decorator Functions

```python
from pyreprint import line, header, box, banner

print(line("=", 40))        # ========================================
print(header("Title"))      # Title\n=====
print(box("Content"))       # +-------+\n| Content |\n+-------+
print(banner("WELCOME", width=40))
```

## Built-in Styles

```python
from pyreprint import reprint

reprint("Text", style="section")   # Lines above and below
reprint("Text", style="header")    # Underlined
reprint("Text", style="box")       # In a box
reprint("Text", style="banner")    # Centered banner
reprint("Text", style="success")   # [OK] Text
reprint("Text", style="warning")   # !! WARNING !! Text
reprint("Text", style="error")     # [ERROR] Text
```

## Custom Styles

```python
from pyreprint import register_style, reprint

@register_style("custom")
def custom_style(text, **kwargs):
    return f">>> {text} <<<"

reprint("Hello", style="custom")  # >>> Hello <<<
```

## Output Capture

```python
from pyreprint import capture_output

with capture_output() as captured:
    print("This is captured")

print(captured.stdout)  # "This is captured\n"
```

## Rich Integration

```python
from pyreprint import rprint, panel, rule

rprint("[bold red]Error:[/bold red] Something went wrong")
rule("Section")
panel("Important", title="Notice")
```

## Sklearn-style Repr

```python
from pyreprint import ReprMixin

class MyModel(ReprMixin):
    def __init__(self, alpha=1.0, max_iter=100):
        self.alpha = alpha
        self.max_iter = max_iter

model = MyModel(alpha=0.5)
print(model)  # MyModel(alpha=0.5, max_iter=100)
```

## Documentation

Full documentation: https://colinconwell.github.io/PyRePrint

## License

GPL-3.0-or-later
