https://github.com/agn-7/colored-print
Python colored print plus storing it into a file.
https://github.com/agn-7/colored-print
color colors loggers logging output python terminal
Last synced: 7 months ago
JSON representation
Python colored print plus storing it into a file.
- Host: GitHub
- URL: https://github.com/agn-7/colored-print
- Owner: agn-7
- License: mit
- Created: 2021-05-08T05:46:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T09:58:57.000Z (about 2 years ago)
- Last Synced: 2025-03-27T21:02:20.733Z (about 1 year ago)
- Topics: color, colors, loggers, logging, output, python, terminal
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Colored Print
-----------------------
[](https://pypi.org/project/python-colored-print/)
[](https://pypi.org/project/python-colored-print/)
[](https://raw.githubusercontent.com/agn-7/colored-print/master/LICENSE)
A lightweight python library in order to print in different colors and save them into a file optionally.
## Setup
```bash
pip install python-colored-print
```
## Usage
```python
from colored_print import log
log.success("Hello", 123, "Bye").store()
log.info("Hello", 123, "Bye")
log.warn("Hello", 123, "Bye")
log.err("Hello", 123, "Bye").store(path="log.txt")
log.pink("Hello", 123, "Bye")
log("Hello", 123, "Bye") # default color is white
log.store("Hello", 123, "Bye") # only store without printing
```
## Output
