This package analyze emergence of characters in file (for statistics decryption).
This package require :
- python3
- python3 Standard Library
- matplotlib
pip install FileAnalysis
FileAnalysis -h # Print help message
FileAnalysis -F # Show french emergence
FileAnalysis -E # Show english emergence
FileAnalysis -f text.txt # Show all characters emergence in file named "text.txt"
FileAnalysis -s -f text.txt # Show sorted characters emergence in file named "text.txt"
FileAnalysis -j -f text.txt # Show characters emergence as JSON in file named "text.txt"
FileAnalysis -a -f text.txt # Show alphabet characters emergence in file named "text.txt"
FileAnalysis -n -f text.txt # Show all characters emergence number (default show pourcent)
from FileAnalysis import FileAnalysis
analysis = FileAnalysis("text.txt", alphabet_only=True)
result = analysis.analysis_filecontent()
result = analysis.get_pourcent()
analysis.sort_and_show(sort=False, json=False)
python3 FileAnalysis.pyz -f text.txt
# OR
chmod u+x FileAnalysis.pyz # add execute rights
./FileAnalysis.pyz -F # execute file
python3 -m FileAnalysis -F
python3 -m FileAnalysis.FileAnalysis -f text.txt
Licensed under the GPL, version 3.