No project description provided
Project description
text_tools-pkg
Библиотека для базовой текстовой аналитики.
Возможности
- подсчёт слов;
- частотный анализ символов;
- очистка текста
- генерация slug;
- проверка сложности пароля;
- нормализация пробелов.
Установка
pip install text-tools-pkg
Структура
text_tools_pkg/ analyzer.py processing.py logger.py validators.py exceptions.py
Использование
from text_tools_pkg.analyzer import TextAnalyzer
from text_tools_pkg.processing import clean_text, slugify, is_strong
# Анализ текста
analyzer = TextAnalyzer("Hello world hello")
print(analyzer.word_count()) # 3
print(analyzer.char_count()) # 17
print(analyzer.frequency()) # {'H': 1, 'e': 2, ...}
# Очистка текста
print(clean_text("Hello world")) # "Hello world"
# Генерация slug
print(slugify("Hello World!")) # "hello-world"
# Проверка пароля
print(is_strong("MyPass123")) # True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text_tools_pkg-0.1.1.tar.gz
(2.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file text_tools_pkg-0.1.1.tar.gz.
File metadata
- Download URL: text_tools_pkg-0.1.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.14.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7245646b93c3a2ca00b15e3b4784997e69dfa8827f81a5d8e942b58a2e831cb9
|
|
| MD5 |
e76a2c7f708c2a408534f653b686c46e
|
|
| BLAKE2b-256 |
5fa39ae21cb7e4d3d2a8aa848f74a5fb730659eeecfe87d35a04d4b8e20d25d2
|
File details
Details for the file text_tools_pkg-0.1.1-py3-none-any.whl.
File metadata
- Download URL: text_tools_pkg-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.14.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
015bc4b8f4853d8a3c2768dce5841ddd99c465414b7b127723c525c86c9128a9
|
|
| MD5 |
b7773f67f3ef614266d94fc61bfe6ee5
|
|
| BLAKE2b-256 |
e61b373d9186e7b6b3e235b07ae61b7cffecd33b3e44f79689546aabbd1166c3
|