Install & Compatibility
Where this runs
tested against v0.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.030s · 18.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.040s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
reprint
✓ from reprint import output
The main class is 'output' from the reprint module. No common wrong import pattern.
output
✓ from reprint import output
Direct import of the output function/class.
Creates a dynamic multi-line output that refreshes in place. The 'initial_len' sets the number of lines; assign to list indices to update.
import time
from reprint import output
with output(initial_len=3, interval=0.1) as output_lines:
for i in range(10):
output_lines[0] = f"Line 1: {i}"
output_lines[1] = f"Line 2: {i*2}"
output_lines[2] = f"Line 3: {i*3}"
time.sleep(0.5)
Errors
Common errors & fixes
AttributeError: module 'reprint' has no attribute 'output'
Incorrect import: using 'import reprint' then calling 'reprint.output'
fixCorrect import: from reprint import output
IndexError: list assignment index out of range
Trying to update an index that exceeds the number of lines defined by 'initial_len'
fixSet 'initial_len' to the number of lines you will modify, or modify only existing indices.
ValueError: I/O operation on closed file.
Attempting to modify output_lines after the 'with' block has exited
fixEnsure all modifications to output_lines are made within the 'with' block.
Upgrade
Version history
0.6.0latest on PyPI · released Feb 8, 2021
Audit
Dependencies
coloramaoptionalRequired for color support on Windows