A command-line tool to count the characters in a text file
Project description
Char Counter
Char Counter is a command line tool that counts the number of unique characters in a text file or an input string.
Installation
- Clone the repository:
git clone <git@git.foxminded.ua:foxstudent102513/task-5-create-the-python-package.git>
- Navigate to the project directory:
cd <task-5-create-the-python-package>
- Install the project using pip:
pip install .
Usage
Char Counter can be used with two arguments: --string
and --file
.
To count unique characters in a string, use the --string
argument:
python -m char_counter --string "Your text here"
To count unique characters in a text file, use the --file
argument:
python -m char_counter --file /path/to/your/file.txt
Note: Running without parameters will result in the following message: "Please provide either --string or --file parameter.".
Author
- Uladzimir Radchanka - Uradchanka@gmail.com
License
This project is licensed under the MIT License.
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
char-counter-1.0.0.tar.gz
(4.1 kB
view hashes)