semvec/pypi-packages huggingface dataset:
console-color-writer 1.0.1
write lines with color and tags !
Keywords: python,console_color_writer,windows,mac,linux


# console_color_writer

[![Downloads](https://static.pepy.tech/badge/console-color-writer)](https://pepy.tech/project/console-color-writer)

write lines with color tags !


## Installation

```
pip install console_color_writer
```

https://pypi.org/project/console-color-writer/


## Usage

example:

```python
from console_color_writer import *

print_green('ok','some info text ...')
print_yellow('alert','some info text ...')
print_red('bad','some info text ...')
print_cyan('some info text ... only cyan')
print_magenta('some info text ... only magenta')
print_white('only white text here (super white)')

print('\nhere some tag example:')
print_green_tag('ok','some info text ...')
print_yellow_tag('alert','some info text ...')
print_red_tag('bad','some info text ...')

print('\nthat all ... color makes the world better !')
```

![Imgur](https://i.imgur.com/gMQB4L7.png)


## Get help

Get help ➡️ [Github issue](https://github.com/cornradio/console-color-writer/issues)

## Update log



`1.0.0` first release

## how to upload a new version (for me)

en: https://packaging.python.org/tutorials/packaging-projects/ 

zh: https://python-packaging-zh.readthedocs.io/zh_CN/latest/minimal.html#id2

> make sure have twine installed first

1. change `setup.py`
2. testing `py setup.py develop`
3. `py setup.py sdist`
4. `twine upload dist/*`

test code :
```
py

from console_color_writer import *

print_green('ok','some info text ...')
print_yellow('alert','some info text ...')
print_red('bad','some info text ...')
print_cyan('some info text ... only cyan')
print_magenta('some info text ... only magenta')
print_white('only white text here (super white)')
dumb_menu.demo()
```
QMarkdownView 0.2
a package based on PySide6 designed to help you preview Markdown documents.

# QMarkdownView

## Description

QMarkdownView is a package based on PySide6 designed to help you preview Markdown documents.

Markdown by default supports code highlighting and LaTex mathematical formulas.

## How to use

Firstly, you need to introduce the QMarkdownView library.

```python
from QMarkdownView import MarkdownView, LinkMiddlewarePolicy
```

You can use the component class `MarkdownView`` we provide.

```python
widget = MarkdownView()
```
`MarkdownView` inherits from `QWebEngineView`.

You can change the Markdown rendering plugin through the `setExtension` member function. The markup rendering engine for this function library is `python-markdown`.

```python
widget.setExtensions(["markdown.extensions.tables", "markdown.extensions.extra"])
```

You can modify Markdown text through the setValue member function.

```python
widget.setValue("# Hello world!")
```

Warning: You need to call this function after the component is loaded.