MCPcopy Index your code
hub / github.com/Matthias1590/ConsoleDraw

github.com/Matthias1590/ConsoleDraw @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
15 symbols 41 edges 6 files 5 documented · 33%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Have you ever tried updating the console with text that changes multiple times a second? Remember how when you tried clearing the console with os.system calls it would make the console flash and make the text unreadable? I wrote this python module to prevent exactly that. Introducing...

ConsoleDraw

A python module to update the console without flashing.

Installation

The consoledraw module can be installed using pip.

pip install consoledraw

If that doesn't work, try this instead.

pip install git+https://github.com/Matthias1590/ConsoleDraw.git

Or, if you want to, you can clone the repo and run the following commands.

python3 setup.py build
python3 setup.py install

Demo

example.py:

from consoledraw import Console
from datetime import datetime
from time import sleep

console = Console()

format = """
    ╔══════════╗
    ║ {} ║
    ╚══════════╝
"""

while True:
    with console:
        console.print(format.format(datetime.strftime(datetime.now(), "%H:%M:%S")))

    sleep(0.5)

Demo GIF

with console:    
    console.print("Hello, world!")
    console.print("Another message!")

# is the same as

console.clear()

console.print("Hello, world!")
console.print("Another message!")

console.update()

Downloads

Downloads Downloads Downloads

Supported Operating Systems

The consoledraw module is supported on Windows, Linux and Mac.

Core symbols most depended-on inside this repo

update
called by 2
consoledraw/console.py
readme
called by 1
setup.py
print
called by 1
consoledraw/console.py
clear
called by 1
consoledraw/console.py
set_cursor_visibility
called by 0
consoledraw/utils.py
clear_screen
called by 0
consoledraw/utils.py
set_cursor_position
called by 0
consoledraw/utils.py
write
called by 0
consoledraw/console.py

Shape

Method 8
Function 4
Class 3

Languages

Python100%

Modules by API surface

consoledraw/console.py9 symbols
consoledraw/utils.py4 symbols
setup.py1 symbols
consoledraw/errors.py1 symbols

For agents

$ claude mcp add ConsoleDraw \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact