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.6.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.6-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: task_5_rakitin_sergey-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 0477d96cd575fb6cb74576e205c1da3673cc6cccf839f0afa4aaafb7d76edb47
MD5 b927933b776fd39e504e27701a1deac9
BLAKE2b-256 3441c7fec4f52ff26e8c492b7bdc4f846f30272cf8448622668588650b79dfb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for task_5_rakitin_sergey-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5c0e1a454f4d5d9bd988646adac6e177afe2060819673140bc5fd77e470059
MD5 e0e5036f42801cb9b387a7778c355637
BLAKE2b-256 7d37a38cb11371a7e9af4d7c56f45bd7dad6ab93afb87531a3a92f234bb1bc2e

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