https://github.com/chunribu/matrix-py3
Python3 implementation of cmatrix with a timer
https://github.com/chunribu/matrix-py3
cmatrix matrix timer
Last synced: 5 months ago
JSON representation
Python3 implementation of cmatrix with a timer
- Host: GitHub
- URL: https://github.com/chunribu/matrix-py3
- Owner: chunribu
- License: mit
- Created: 2021-08-31T13:34:48.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-29T14:21:03.000Z (over 4 years ago)
- Last Synced: 2025-11-21T21:21:05.555Z (8 months ago)
- Topics: cmatrix, matrix, timer
- Language: Python
- Homepage: https://pypi.org/project/matrix-py3/
- Size: 1.15 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Matrix-py3
[](https://github.com/chunribu/) [](https://anaconda.org/conda-forge/matrix-py3) [](https://anaconda.org/conda-forge/matrix-py3) [](https://anaconda.org/conda-forge/matrix-py3) [](https://anaconda.org/conda-forge/matrix-py3)
Python3 implementation of [cmatrix](https://github.com/abishekvashok/cmatrix) to generate "character falls".
Matrix-py3 is adapted from [pmatrix](https://github.com/joechrisellis/pmatrix) that is well recommended if you prefer Python2.
It is also 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.

## Installation
+ with pip
```bash
pip install matrix-py3
```
+ with conda
```bash
conda install matrix-py3 -c conda-forge
```
## Usage
### Run independently
+ in command line
```bash
matrix # run until `Ctrl + C`
matrix 3 # run for 3 seconds
```
+ in python
```python
from matrix3 import matrix
matrix() # run until `Ctrl + C`
matrix(3) # run for 3 seconds
```
### Run 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:
```bash
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
```