Skip to main content

A package to count unique characters in a string.

Project description

Пакет count_unique_characters

  • count_unique_characters - Простий Python-пакет для підрахунку унікальних символів у рядку або файлі.

Встановлення

Пакет доступний на PyPI, тож для встановлення достатньо виконати:

pip install count-unique-characters

Використання

from count_unique_characters.core import count_unique_characters

Приклад використання:

text = "hello world"
unique_count = count_unique_characters(text)
print(f"Кількість унікальних символів: {unique_count}")

Очікуваний результат:

Кількість унікальних символів: 6


Виклик через GitBash:

Передача рядка напряму:

count-unique-characters --string "hello world"

Передача текстового файлу:

count-unique-characters --file path/to/text.txt

**(Заміни path/to/text.txt на реальний шлях до файлу)


Структура проєкту

count_unique_characters/

├── LICENSE

├── pyproject.toml

├── README.md

├── src/ 
└── count_unique_characters/

   └── __init__.py

   └── count_unique_characters.py


├── tests/

Тестування

Щоб запустити тести:

 - pytest tests/

Ліцензія

Цей проєкт ліцензовано під MIT. Дивись LICENSE для деталей.

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

count_unique_characters-0.1.3.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.

count_unique_characters-0.1.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file count_unique_characters-0.1.3.tar.gz.

File metadata

  • Download URL: count_unique_characters-0.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for count_unique_characters-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bb1b1480f786a9b16d03779e4a9130a23dd7fc49acc27dffaff13914a61003f9
MD5 7ea6660bdb7a6f8b53ebfd864e2aece6
BLAKE2b-256 97e3d1f56217e902b189fe62842441c8b182277e65e572aaad7ce3703aaaaa88

See more details on using hashes here.

File details

Details for the file count_unique_characters-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for count_unique_characters-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 74c4321f334c552794dd66dc871944e6efff9c9722373cc108220f2a94ec0faf
MD5 7d8815bbd4584fbcd65a859571ff7dc7
BLAKE2b-256 1c6dc2823a850a62a863a987857457a3c457d2da47d507ac51c9d77374388cfc

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