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 details)
File details
Details for the file char-counter-1.0.0.tar.gz
.
File metadata
- Download URL: char-counter-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbee88ad6230d6122f55f0f079ede66bc4cede6e3435c2cab2bc944bcce06379 |
|
MD5 | 40fe77fcb75d11494e17b8e088f3089c |
|
BLAKE2b-256 | d8361facc494577698bd44815718f01e9364d10b1cbda6277310f815d3f52259 |