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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| char_counter_vp-0.0.5.tar.gz | 29.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for char-counter-vp 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.