Metadata-Version: 2.4
Name: myprintx
Version: 1.0.1
Summary: An enhanced print function supporting color and text styles.
Home-page: https://github.com/1061700625/myprintx
Author: Hualala
Author-email: 1061700625@qq.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Classifier: Intended Audience :: Developers
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# colorprintx 🎨
A lightweight Python library that enhances the built-in `print()` function.

## Features
- ✅ Foreground & background color control  
- ✅ Text styles: **bold**, _italic_, underline  
- ✅ Compatible with built-in `print` behavior  
- ✅ Optional global patch (one line activation)

## Install
```bash
pip install myprint
```

## Usage
```bash
>>> import myprintx
>>> myprintx.print("a", fg_color="green")   # ✅ 正常（未打补丁）
>>> myprintx.auto_patch_color()
>>> print("b", fg_color="red")              # ✅ 正常（已打补丁）
>>> myprintx.unpatch()
>>> print("c")                              # ✅ 恢复为普通print
```

## Publish
```bash
pip install build twine
python -m build
twine upload dist/*
```

## Blog
- [【教程】增强版 print 函数，支持彩色与样式化终端输出](https://blog.csdn.net/sxf1061700625/article/details/153268971)

## TODO
more ...
