Metadata-Version: 2.4
Name: count_unique_characters
Version: 0.1.2
Summary: A package to count unique characters in a string.
Author-email: Yurii Stepanenko <Step.crypt@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Yurii Stepanenko
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Пакет count_unique_characters

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

Пакет доступний на PyPI, тож для встановлення достатньо виконати:
```bash
pip install count-unique-characters
```

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

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

Python-консоль:


```python
from count_unique_characters.core import count_unique_characters

```
Приклад використання:
```python
text = "hello world"
unique_count = count_unique_characters(text)
print(f"Кількість унікальних символів: {unique_count}")
```
Очікуваний результат:

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

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

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

```python
(pip install -e .) 
```

Далі

Передача рядка напряму:
```python
count-unique-characters --string "hello world"
```
Передача текстового файлу:
```python
count-unique-characters --file path/to/text.txt
```
**(Заміни path/to/text.txt на реальний шлях до файлу)

--------------------------------------------------------

# Структура проєкту
```python
count_unique_characters/

├── LICENSE

├── pyproject.toml

├── README.md

├── src/ 
└── count_unique_characters/

   └── __init__.py

   └── count_unique_characters.py


├── tests/
```
-------------------------------------------------------

# Тестування
Щоб запустити тести:
```python
 - pytest tests/
```
# Ліцензія

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