Skip to main content

A utility to count the number of unique characters in a string or file.

Project description

Count-unique-chars

A small Python utility to count the number of unique characters in a given string or file.

Installation

You can install the count_unique_chars package using pip:

pip install count-unique-chars==0.0.1

Dependencies

pytest==7.3.1
pytest-mock==3.10.0	

Usage

Run the script with a file argument

count_unique_chars --file path/to/file

Run the script with a string argument

count_unique_chars --string "your string"

When both --file and --string are provided, --file takes priority

count_unique_chars --file path/to/file --string "your string"

License

This project is licensed under the MIT License. See the LICENSE file for more details.

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

count_unique_chars-0.0.2.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

count_unique_chars-0.0.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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