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

Uploaded Python 3

File details

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

File metadata

  • Download URL: count_unique_characters-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 52bfb1bdf56331d1070f88f07afeb7577fdc318bed2cb7cc3164c6af635a875e
MD5 5031bcae2cdee9d723d32207f752ef75
BLAKE2b-256 a94ace34ab1550ee5069dd7665c0715a4b4e1953d2a61eb468fa985601999378

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for count_unique_characters-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06ae3e10be559bb306edfbd6772b8709275da7754ccecdf67e83a9b91a6e338e
MD5 a7210bfea867c8db4264e4a2ec863370
BLAKE2b-256 90d3f258ad882b7e2489ff8e636b0a640cbebc20efe0eb265b849e16cc304270

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