Skip to main content

Python3 implementation of cmatrix with a timer

Project description

Matrix-py3

Python3 implementation of cmatrix to generate "character falls".

Matrix-py3 is adapted from pmatrix that is well recommended if you prefer Python2.

It is noteworthy that a timer is added to matrix-py3 for a scheduled stop. What's more, matrix-py3 can be regarded as a screensaver that runs parallel to other time-consuming programs.

screenshot

Installation

  • with pip
pip install matrix-py3
  • with conda
conda install matrix-py3 -c conda-forge

Usage

Run independently

  • in command line:
matrix # run until `Ctrl + C`
matrix 3 # run for 3 seconds
  • in python:
from matrix3 import matrix

matrix() # run until `Ctrl + C`
matrix(3) # run for 3 seconds

Parallel to other programs

Add coolmatrix to the head of your commands. For example, ping is a command for testing a network connection. Assuming you want to run ping 8.8.8.8 -c 10 , then run:

coolmatrix ping 8.8.8.8 -c 10

All the outputs can be recorded automatically in the file cool.out .

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=110 time=75.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=110 time=81.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=110 time=82.3 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=110 time=75.0 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 75.055/78.655/82.345/3.449 ms

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

matrix-py3-0.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

matrix_py3-0.0.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file matrix-py3-0.0.4.tar.gz.

File metadata

  • Download URL: matrix-py3-0.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.10

File hashes

Hashes for matrix-py3-0.0.4.tar.gz
Algorithm Hash digest
SHA256 56d10cce66a7e0277347e8252b7767efb1fe0b23c55ed5b15a3163cd88f0d80b
MD5 84192663ad89e9e67b6f68219b6d2f8e
BLAKE2b-256 3af1c3e1eb1b6b6069160f6f39d0151b5bf1544e284e2cf3302bdec1dab4161c

See more details on using hashes here.

File details

Details for the file matrix_py3-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: matrix_py3-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.10

File hashes

Hashes for matrix_py3-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 232bf796c5f996965de37e4897dd3c3c1c584fadf7abb6d684b0ad43ab529066
MD5 b88fd60eaffc43ba946ab85879e4afad
BLAKE2b-256 0e25e31bc310bd1765d25c9ed968e64515d5f6121b5f75d6d81a8e56e7cc42d3

See more details on using hashes here.

Supported by

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