Metadata-Version: 2.1
Name: print2
Version: 0.2.9
Summary: Print2 helps print beautiful message with indent and color
Author-email: Jeremie Robert <appydo@gmail.com>
License: MIT License
        
        Copyright (c) 2022 Jeremie Robert
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/jerob/print2
Project-URL: documentation, https://github.com/jerob/print2/blob/main/README.md
Project-URL: Bug Tracker, https://github.com/jerob/print2/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: black (>=22.12.0) ; extra == 'dev'

# Print2

## Simple Example

```python
from print2 import pprint

pprint("Hello world !", prefix="### ", indent="\t", color="green", level=2)
```

### Result

<span style="color:green;padding:30pt;">
                ### Hello world !
</span>

## Advanced example

```python
from print2 import PPrint

pp = PPrint(prefix="* ", level=1)

pp.print(
    """LINE 1
LINE 2
"""
)

pp.set_level(2)
pp.set_prefix("# ")

pp.print(
    """AAAA
BBB
CCC
DDD
EEE
FFF
"""
)

pp.inc_level()

pp.print("Final")

```
