Thursday, March 12, 2026
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
32506 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6882 POSTS0 COMMENTS
Nicole Veronica
12005 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12099 POSTS0 COMMENTS
Shaida Kate Naidoo
7011 POSTS0 COMMENTS
Ted Musemwa
7255 POSTS0 COMMENTS
Thapelo Manthata
6967 POSTS0 COMMENTS
Umr Jansen
6956 POSTS0 COMMENTS