Metadata-Version: 2.2
Name: printly
Version: 0.2.0
Summary: Printly is a Python library that enhances the built-in print function with direct text styling: foreground color, background color, and font styles.
Author-email: "Haripo Wesley T." <haripowesleyt@proton.me>
Maintainer-email: "Haripo Wesley T." <haripowesleyt@proton.me>
License: MIT License
        
        Copyright (c) 2025 Haripo Wesley T.
        
        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/haripowesleyt/printly
Project-URL: Issues, https://github.com/haripowesleyt/printly/issues
Project-URL: Repository, https://github.com/haripowesleyt/printly
Keywords: styled print,terminal color,colorama,termcolor,color print
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# Printly
Printly is a Python library that enhances the built-in print function with direct text styling: foreground color (`fg`), background color (`bg`), and font styles (`fs`).

## Features
- **Colors:**
  - Supports over 140 color names ([from HTML](https://htmlcolorcodes.com/color-names/))
  - Supports all RGB values (e.g., `"128,0,128"`)
  - Supports all HEX color codes (e.g., `"#ff00ff"`)
- **Font Styles:**
  - Supports 7 font styles: `bold`, `italic`, `strikethrough`, `underline`, `overline`, `double-underline`, and `hide`.
  - Supports combining multiple font styles (e.g., `"bold+italic"`)
- **Compatibility:**
  - Supports all standard `print()` parameters: `sep`, `end`, `file`, and `flush`.

## Installation
```bash
pip install printly
```

## Usage

### 1. `print()` Function
An enhanced version of the built-in `print()` function.

#### Example 1 (Recommended)
```python
import printly
printly.print("Hello, world!", fg="red", bg="white", fs="bold") 
```
#### Example 2 (Override Built-in `print()`)
```python
from printly import print
print("Hello, world!", fg="red", bg="white", fs="bold")
```

### 2. `style()` Function
Apply foreground color, background color, and font style to text.

#### Example
```python
from printly import style
styled_text = style("Hello, world!", fg="red", bg="white", fs="bold")
print(styled_text)
```
