semvec/pypi-packages huggingface dataset:
myprintx 1.0.5
An enhanced print function supporting color and text styles.
License: MIT
Requires Python: >=3.7

# myprintx 🎨
A lightweight Python library that enhances the built-in `print()` function.

## Features
- ✅ Colorful output — control both foreground & background colors
- ✅ Text styles — support bold, italic, and underline
- ✅ Non-intrusive design — 100% compatible with the built-in print()
- ✅ Global patch — one-line activation for all print() calls
- ✅ Auto prefix — show date, time, tag, and location info
- ✅ Built-in log helpers — info(), warn(), error(), debug()

## Install
```bash
pip install myprint
```
> 🧩 No extra dependencies.

## Usage
```bash
# 基本用法
import myprintx
myprintx.print("普通输出")
myprintx.print("成功", fg_color="green", style="bold")
myprintx.print("警告", fg_color="yellow", style="underline")
myprintx.print("错误", fg_color="white", bg_color="red")

# 启用彩色全局打印
import myprintx
myprintx.patch_color()
print("绿色输出", fg_color="green", style="bold")
print("错误输出", fg_color="white", bg_color="red")
myprintx.unpatch_color()  # 恢复原始 print()

# 启用前缀打印
import myprintx
## 启用：日期、时间、自定义标签、位置信息
myprintx.patch_prefix(custom_prefix="INFO", show_location=True)
myprintx.print("启动成功", fg_color="green")
myprintx.print("任务执行中", fg_color="cyan")
myprintx.unpatch_prefix()  # 关闭前缀

# 控制是否屏蔽所有 print 输出
myprintx.print("调试输出")  # 正常输出
myprintx.set_show(False)
myprintx.print("生产环境不应出现这行")  # 不输出
myprintx.set_show(True)
myprintx.print("恢复输出")  # 恢复打印

# 简易快速调用
import myprintx
myprintx.patch_prefix(show_location=True)
myprintx.info("系统初始化完成")
myprintx.warn("配置文件缺少部分字段")
myprintx.error("数据库连接失败")
myprintx.debug("缓存刷新完成")
myprintx.unpatch_prefix()

# mode用法
import myprintx
myprintx.print("mode模式调试输出", mode="debug")
myprintx.debug("简易模式调试输出")
myprintx.show_debug(False) # 只屏蔽 debug
myprintx.debug("这行不会输出")
myprintx.print("这行也不会输出", mode="debug")
myprintx.info("这行仍然会输出")
myprintx.show_debug() # 恢复 debug
myprintx.debug("debug 恢复了")
myprintx.set_show(False) # 一键全关
myprintx.error("这行也不会输出")
```

## Pack & Publish
```bash
# test
python -m unittest  tests/test_myprintx.py -v

pip install build twine

# update version in setup.py
version="1.0.x"

# update version in myprintx/__init__.py
__version__="1.0.x"

# package myprintx
rm -rf dist/
python -m build

# test install (optional)
pip install dist/myprintx-1.0.x-py3-none-any.whl --force-reinstall

# publish to pypi
twine upload dist/*

# install from pypi
pip install myprintx --upgrade
```

## Blog
- [【教程】增强版 print 函数，支持彩色与样式化终端输出](https://blog.csdn.net/sxf1061700625/article/details/153268971)

## TODO
more ...
HydroErr 2.0.0
Goodness of fit metrics for use in comparison studies, specifically for use in the field of hydrology
License: MIT
Requires Python: <=3.15,>=3.10
Keywords: hydrology, error, metrics, comparison, statistics, forecast, observed

[![CI](https://github.com/BYU-Hydroinformatics/HydroErr/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/BYU-Hydroinformatics/HydroErr/actions/workflows/ci.yml?query=branch:master)
[![image](https://img.shields.io/pypi/v/HydroErr.svg)](https://pypi.python.org/pypi/HydroErr)
[![image](https://img.shields.io/pypi/l/HydroErr.svg)](https://github.com/BYU-Hydroinformatics/HydroErr/blob/master/LICENSE)
[![image](https://img.shields.io/pypi/pyversions/HydroErr.svg)](https://pypi.python.org/pypi/HydroErr)

Goodness of fit metrics for use in comparison studies, specifically for use in the field of hydrology

- **Documentation:** https://hydroerr.readthedocs.io/en/stable/
- **Source:** https://github.com/BYU-Hydroinformatics/HydroErr
- **Bug reports:** https://github.com/BYU-Hydroinformatics/HydroErr/issues

HydroErr provides:

- A library of over 70 error metrics to measure hydrologic skill
- Treatment of NaN, Inf, negative, and zero values.
- Scholarly journal sources and code examples for metric methods in the documentation.

Publications:
- Roberts, W., Williams, G., Jackson, E., Nelson, E., Ames, D., 2018. Hydrostats: A Python Package for Characterizing Errors between Observed and Predicted Time Series. Hydrology 5(4) 66, doi:10.3390/hydrology5040066

We would request that if you use this package that you please cite the above paper. The journal paper is open access and can be found at https://doi.org/10.3390/hydrology5040066. BibTeX, EndNote, and RIS files can be downloaded at the journal site.

[![Powered by BYU Hydroinformatics](https://img.shields.io/badge/powered%20by-BYU%20HydroInformatics-blue.svg)](http://worldwater.byu.edu/)