Skip to main content

matrixbox

A tiny cmatrix-style "digital rain" in a small square ASCII window in the corner of your terminal. It runs in a background thread, so your program keeps working (and printing) independently. Blue by default.

pip install ascii-matrixbox

Usage

import matrixbox, time

# as a decorator: the window lives while the function runs
@matrixbox.matrix
def work():
    for i in range(20):
        print("working", i)
        time.sleep(0.3)

# with parameters
@matrixbox.matrix(size=8, color="cyan", corner="top-left")
def other(): ...

# as a context manager
with matrixbox.MatrixBox(size=8):
    time.sleep(5)

# manual control
matrixbox.start()
...
matrixbox.stop()

Works with regular functions, async def functions and generators.

option default meaning
size 10 window height in rows (width is 2*size)
color "blue" blue, green, red, cyan
fps 15 frames per second
corner "top-right" top-right or top-left
reserve True keep space under the window so print() can't overwrite it

If the output is not a terminal (pipe, file), nothing is drawn. Needs a terminal with ANSI support (any modern Linux/macOS terminal, Windows Terminal).

Demo: python -m matrixbox --color blue --size 10 (or just matrixbox).

По-русски

Маленький «матричный дождь» в квадратном ASCII-окошке в углу консоли. Работает в фоне, не мешает вашей программе. Используйте как декоратор @matrixbox.matrix, контекстный менеджер with matrixbox.MatrixBox(): или вручную через matrixbox.start() / matrixbox.stop().

Metadata

Release files for ascii-matrixbox 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ascii-matrixbox 0.1.0
File Size Uploaded Provenance Actions
ascii_matrixbox-0.1.0.tar.gz 7.6 kB Without provenance Details for ascii_matrixbox-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ascii-matrixbox 0.1.0
File Interpreter ABI Platform Actions
ascii_matrixbox-0.1.0-py3-none-any.whl Python 3 none any Details for ascii_matrixbox-0.1.0-py3-none-any.whl

Total release size: 15.3 kB

Release files / ascii_matrixbox-0.1.0.tar.gz

Download URL ascii_matrixbox-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d7c2c44b04afe913b5bcc3d655fea4f26515897ef9f238351055848f50fa58ca
BLAKE2b-256 checksum
How to use checksums
abd1761343ac34417b18bbeac432b6f02cdb164a6a492e9437fe2fb971610c68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.0

Release files / ascii_matrixbox-0.1.0-py3-none-any.whl

Download URL ascii_matrixbox-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbf26922d486d8c2338a21a862bbbea3fdfab1befbd28c4b0452c8ed6da32c2d
BLAKE2b-256 checksum
How to use checksums
39f0a3b5aa86f45e89057960d16dcdf9ab65da58d45b407ccadd7b3c06cfa964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.0

Security for ascii-matrixbox 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page