Saturday, November 22, 2025
HomeLanguagesSpikes package in Python

Spikes package in Python

spikes is a package in Python, a command-line utility used for displaying bar graphs on the terminal, therefore can be used for quick analysis

Installation: Run the following pip command on the terminal:

pip install spikes

It’s recommend to run all program on terminal of IDE as PowerShell doesn’t support few output characters 

Syntax: spike [space separated data]

Example 1: To obtain a simple bar graph of whole numbers on the terminal

spike 10 20 30 40 50 60

Output:

Example 2: Data can be also decimal numbers.

spike 0 1 2 0.3 0.4 0.5 6

Output:

Example 3: If data is negative, (compulsory to have 1st value as positive value), they will be considered as zero and the positive values of graph will be shown

spike 2 -7 -9
spike -2 -7 9

Output:

Example 4: For vertical data use -1 flag at the beginning.

spike -1 5 10 17 29

Output:

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32407 POSTS0 COMMENTS
Milvus
97 POSTS0 COMMENTS
Nango Kala
6784 POSTS0 COMMENTS
Nicole Veronica
11931 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11999 POSTS0 COMMENTS
Shaida Kate Naidoo
6907 POSTS0 COMMENTS
Ted Musemwa
7168 POSTS0 COMMENTS
Thapelo Manthata
6863 POSTS0 COMMENTS
Umr Jansen
6848 POSTS0 COMMENTS