Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cccaaannn/extprint
extended print
https://github.com/cccaaannn/extprint
Last synced: 1 day ago
JSON representation
extended print
- Host: GitHub
- URL: https://github.com/cccaaannn/extprint
- Owner: cccaaannn
- License: mit
- Created: 2019-08-12T18:31:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T15:21:32.000Z (about 5 years ago)
- Last Synced: 2024-12-30T01:34:32.639Z (24 days ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## extprint
- **prints with color and background color**
- **prints lists and their indexes line by line**
## Install
```sh
pip install extprint
```## Usage
```python
from extprint import printlist,printcolored,set_default_print_options
``````python
list = [1,2,3,4,5,6,7,8,9,0]printlist(list, seperator="----->", start_index=0, color="GREEN", bold=True)
printcolored("HELLO", color="BLUE", bold=True)
set_default_print_options(seperator="=",color="VIOLET",bold=True)
printlist(list)
printcolored("HI")
```
```
0 -----> 1
1 -----> 2
2 -----> 3
3 -----> 4
4 -----> 5
5 -----> 6
6 -----> 7
7 -----> 8
8 -----> 9
9 -----> 0
HELLO
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
10 = 0
HI
```## Available colors-options
```python
from extprint import show_available_colorsshow_available_colors()
```
- **BLACK**
- **RED**
- **GREEN**
- **YELLOW**
- **BLUE**
- **VIOLET**
- **BEIGE**
- **WHITE**- **BOLD**
- **ITALIC**