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
Built Distribution
Close
Hashes for count_unique_chars-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40b66aaab48e174c955dd5476f366541cc78a87c1704c08979b79c458854d353 |
|
MD5 | d15ff9ff005118cb90f918cb43cecc67 |
|
BLAKE2b-256 | abda11ed636c09a7e8cb74f263028fa4c307897b609cc702bb28118f1e3184d2 |