https://github.com/pomponchik/glvrd
Клиент к сервису glvrd.ru
https://github.com/pomponchik/glvrd
Last synced: 4 months ago
JSON representation
Клиент к сервису glvrd.ru
- Host: GitHub
- URL: https://github.com/pomponchik/glvrd
- Owner: pomponchik
- License: mit
- Created: 2023-10-30T13:58:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T18:28:36.000Z (over 1 year ago)
- Last Synced: 2025-10-29T05:15:57.523Z (8 months ago)
- Language: Python
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glvrd - неофициальный клиент к сервису glvrd.ru
[](https://pepy.tech/project/glvrd)
[](https://pepy.tech/project/glvrd)
[](https://codecov.io/gh/pomponchik/glvrd)
[](https://hitsofcode.com/github/pomponchik/glvrd/view?branch=main)
[](https://github.com/pomponchik/glvrd/actions/workflows/tests_and_coverage.yml)
[](https://pypi.python.org/pypi/glvrd)
[](https://badge.fury.io/py/glvrd)
[](http://mypy-lang.org/)
[](https://github.com/astral-sh/ruff)
Это неофициальный и не production-ready клиент для замечательного сервиса проверки текстов - glvrd.ru. Работает в обход API, так что на особую скорость советую не расчитывать.
Устанавливается так:
```bash
pip install glvrd
```
Пример кода:
```python
from glvrd import GlvrdClient
client = GlvrdClient()
text = 'Это неофициальный и не production-ready клиент для замечательного сервиса проверки текстов - glvrd.ru. Работает в обход API, так что на особую скорость советую не расчитывать.'
def print_estimate(estimate, what_is_it):
print(f'{what_is_it}: {estimate.estimate}/10')
for error_name, examples in estimate.errors.items():
print(f'{error_name}:')
for example in examples:
print(f'\t{example}')
print()
print_estimate(client.estimate_clarity(text), 'Чистота')
print_estimate(client.estimate_readability(text), 'Читаемость')
```
... выдаст что-то вроде:
```
Чистота: 8.1/10
Необъективная оценка:
замечательного
Усилитель:
особую
Читаемость: 8.8/10
В начале предложения нет глагола:
Это неофициальный и не production-ready клиент для замечательного сервиса
Подозрение на парцелляцию:
Работает в обход
```