Skip to main content

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

Upgrade package to the last version with PIP:

pip install task-5-rakitin-sergey --upgrade

How to use

You can use the package as a command on the command line:

path_to_your_project> python -m task_5_Rakitin_Sergey.collection --string "your string"
path_to_your_project> python -m task_5_Rakitin_Sergey.collection --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

https://pypi.org/project/task-5-Rakitin-Sergey/

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

task_5_rakitin_sergey-0.0.5.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

task_5_rakitin_sergey-0.0.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file task_5_rakitin_sergey-0.0.5.tar.gz.

File metadata

  • Download URL: task_5_rakitin_sergey-0.0.5.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for task_5_rakitin_sergey-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3871d7634b40e6e64e82657d88e66df1262b237e44c2a1e63ba94075b95c8040
MD5 24046d214c824f92f62a4fa2be099e4a
BLAKE2b-256 120d2cc1e4c844eb36ea45f8a68ebdcdcdd26c425322cd40a57633ae899a50b6

See more details on using hashes here.

File details

Details for the file task_5_rakitin_sergey-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for task_5_rakitin_sergey-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2bf76eccadc179bdaea83c23e118d00392bb5ff9c1a498d525d8bdee600c82b6
MD5 11bd6c1f4f5b199b5bd836421b4e6e83
BLAKE2b-256 d2a594d2edca7578b56d7ea596ddcedd974435fad4c1c967810facb96979eb29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page