Skip to main content

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

  1. Clone the repository:
git clone <git@git.foxminded.ua:foxstudent102513/task-5-create-the-python-package.git>
  1. Navigate to the project directory:
cd <task-5-create-the-python-package>
  1. 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

License

This project is licensed under the MIT License.


Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page