Skip to main content

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


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)

Uploaded Source

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

Hashes for muxify-0.0.5.tar.gz
Algorithm Hash digest
SHA256 40dd088007f7c56b38af63863620718721ea65ff9b6b997f0bb35801f633de0c
MD5 0c77f4f5bb68bcd1bad89ce5a45d63a9
BLAKE2b-256 0d389dd776436337bc6410a7f2e36b5ebced582506d99c89fabb1d63f82ca940

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page