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
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.4.tar.gz
(1.9 kB
view details)
File details
Details for the file muxify-0.0.4.tar.gz.
File metadata
- Download URL: muxify-0.0.4.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf59e582dfa88fe789c065da139d19ba522bf40e4f45f3003bc110102a7177ef
|
|
| MD5 |
586130e53b12617a2cd9de366ee2902f
|
|
| BLAKE2b-256 |
9b8cc02f6906770e5125246060770cf6e7a6ee96c28ee3a057762deba49d358a
|