Skip to main content

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 -m command_line.py --string "your_string_here"

or

python -m 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

Metadata

Release files for char-counter-vp 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for char-counter-vp 0.0.5
File Size Uploaded
char_counter_vp-0.0.5.tar.gz 29.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for char-counter-vp 0.0.5
File Interpreter ABI Platform
char_counter_vp-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 56.7 kB

Release files / char_counter_vp-0.0.5.tar.gz

Download URL char_counter_vp-0.0.5.tar.gz
Size 29.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9d281f975faf32f04764b8d4749783453f018d2934572d93d342633dbd964f3
BLAKE2b-256 checksum
How to use checksums
ea2831d425f06d5f0e67a535a2d2e58e6f07a9a48e7c3f3c8327ce0379ab5e72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / char_counter_vp-0.0.5-py3-none-any.whl

Download URL char_counter_vp-0.0.5-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d75ee1e3d98c043da5efd4ec52e0bccd42e703d9380a455621ac27bc2604a6eb
BLAKE2b-256 checksum
How to use checksums
4e75537f3c55f484b5f0ddbd814656dd0d4c0e3cf4ac009d337fd020b2403096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page