Module that count unique chars in string or file
Project description
Character Counter
This Python application allows you to count the number of unique characters in a provided string or a text file.
Usage
Running the Application
Navigate to the src
directory and run the command_line.py
script with the desired options:
python command_line.py --string "your_string_here"
or
python command_line.py --file /path/to/your/text_file.txt
Function Details
count_unique_chars(string=None, file_path=None)
Count the number of unique characters in the input string.
Parameters:
string
(str): The string in which to count unique characters.file_path
(str): The path to the input text file.
Returns:
int
: The count of unique characters in the input string.
Raises:
TypeError
: If the input is not a string.
Author
Volodymyr Perehuda
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_vp-0.0.4.tar.gz
(29.1 kB
view hashes)
Built Distribution
Close
Hashes for char_counter_vp-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 407282ee13b5d8c7f644d5444db131f11a30719211c5e42d674a0e447c281635 |
|
MD5 | a1fdc50681d1a51c3d47ef8c66351b25 |
|
BLAKE2b-256 | 2f27eef809e224d6f4a32ba12c1791951eaf22a0f8ab24342cf81c41cb0f5737 |