A package for counting unique symbols in a string
Project description
Unical Symbol Count Package
This is a Python package for counting unique symbols in a string and processing input from the command line. The package provides a class to count unique symbols and a command-line interface (CLI) to process strings and files.
Features
- Unique Symbol Count: Count the number of unique symbols in a given string.
- CLI Interface: Process strings and files from the command line.
- Error Handling: Provides suggestions for invalid commands based on Levenshtein distance.
Installation
Install package with PIP:
pip install task-5-rakitin-sergey
How to use
You can use the package as a command on the command line:
task_5_Rakitin_Sergey --string "your string" task_5_Rakitin_Sergey --file "path\to\file.txt"
Use as a library import and use the package functions in your Python code:
# Examle:
from task_5_Rakitin_Sergey import UniqueSymbolCounter
counter = UniqueSymbolCounter()
unique_count = counter.count_unique("your_string")
print(f"Unique symbols: {unique_count}")
Link to the package
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file task_5_rakitin_sergey-0.0.2.tar.gz.
File metadata
- Download URL: task_5_rakitin_sergey-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15fb2055f5368d9ad40c5b6e7cdb200db301d65206319c8c6647e2dae4dcf8f3
|
|
| MD5 |
b12183d8105c3d7b8d480fe179c8f2c9
|
|
| BLAKE2b-256 |
4c37c8661e019b0e6321b24b86b57544a9299d9112053381ef1c2da352129878
|
File details
Details for the file task_5_rakitin_sergey-0.0.2-py3-none-any.whl.
File metadata
- Download URL: task_5_rakitin_sergey-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28cd569e61bb0d99e41e0095be39a65cc534c5af2324cb2cf93d7a7da70b609b
|
|
| MD5 |
174f0043b87924c4e6248df4fe6da4a5
|
|
| BLAKE2b-256 |
3eca60da9c70dc224aad09bf71093f0c2d1b7f5819c70880aed2feb7628a61f0
|