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
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.
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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89a9ee5be378a350a69184adb63968f213556fd721d63f22f61cf815b37a27c3 |
|
MD5 | b3da41d0525df234e71e1b8534c4707b |
|
BLAKE2b-256 | 37519eb4a15fcd80fc772b905cd7c20aa92c6df4008ab937bdf4bfef8e946ae5 |