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

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

Виклик через Python.

Python-консоль:

from count_unique_characters.core import count_unique_characters

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

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

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

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


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

Встановлення пакета:

(pip install -e .) 

Далі

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

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.2.tar.gz (5.5 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.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: count_unique_characters-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 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.2.tar.gz
Algorithm Hash digest
SHA256 19fea35f313698a65f761587fd7b82dd1c7d6a55d4993439e1c71d0916babf09
MD5 33567007aab063f4ce6d5c9d5fee75b7
BLAKE2b-256 a1279dbd9fdf17ed77920e0d99e8ff91925dcd1c0a476e6f333248b1af1af21f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for count_unique_characters-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 561cc13c7c72048ae48390ad1ea2846427b460b1e61da8da303c2b9a201da1ce
MD5 bc3f40ce3d9a9385719ec3a8107cd570
BLAKE2b-256 4f090957ce42c81589e4771885f93ca54f307d35a99ca9357ac6baebfdf7a1e3

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