Multiplex stdout into multiple tiles.
Project description
Muxify: Multiplex Stdout
pip install muxify
import time
from muxify import Muxify
mux = Muxify(2, flush_interval=0.01)
i = 0
while True:
if i % 5 == 0:
print(f"Update {i} to tile0", file=mux[0])
print(f"Update {i} to tile1", file=mux[1])
time.sleep(0.01)
i += 1
If muxify causes high CPU load in the VS code terminal you should try to disable GPU acceleration: Go to Preferences => Settings => Search for terminal GPU acceleration => off
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
muxify-0.0.5.tar.gz
(2.0 kB
view details)
File details
Details for the file muxify-0.0.5.tar.gz.
File metadata
- Download URL: muxify-0.0.5.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40dd088007f7c56b38af63863620718721ea65ff9b6b997f0bb35801f633de0c
|
|
| MD5 |
0c77f4f5bb68bcd1bad89ce5a45d63a9
|
|
| BLAKE2b-256 |
0d389dd776436337bc6410a7f2e36b5ebced582506d99c89fabb1d63f82ca940
|