This package analyze emergence of characters in file (for statistics decryption).
Project description
FileAnalysis
Description
This package analyze emergence of characters in file (for statistics decryption).
Requirements
This package require :
- python3
- python3 Standard Library
- matplotlib
Installation
pip install FileAnalysis
Usage
Command line:
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)
Python script
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)
Python executable:
python3 FileAnalysis.pyz -f text.txt
# OR
chmod u+x FileAnalysis.pyz # add execute rights
./FileAnalysis.pyz -F # execute file
Python module (command line):
python3 -m FileAnalysis -F
python3 -m FileAnalysis.FileAnalysis -f text.txt
Links
Licence
Licensed under the GPL, version 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FileAnalysis-0.0.2.tar.gz
(18.2 kB
view details)
File details
Details for the file FileAnalysis-0.0.2.tar.gz
.
File metadata
- Download URL: FileAnalysis-0.0.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf22a9f08bd8bada2484ea354f8664344d981a8d2f4633198bf7724380adcbd |
|
MD5 | 32b17a4f606d08c2f2d937bcd73b100d |
|
BLAKE2b-256 | bd9f175170c7f0d9be5f8ca9002ebf054f92208a2eed8aefa782140c8bcdaac7 |