pip install prlps_speller
асинхронный спеллер с использованием API Yandex Speller.
ограничения для одного IP-адреса:
- на количество обращений к API - 10 000 обращений в сутки;
- на объем проверяемого текста - 10 000 000 символов в сутки.
параметры при создании экземпляра класса YandexSpeller:
format_text: формат текста ('auto', 'html', 'text')lang: языки проверки ('en', 'ru', 'uk')check_yo: учитывать букву ёignore_urls: игнорировать ссылкиignore_tags: игнорировать HTML-тегиignore_capitalization: игнорировать регистрignore_digits: игнорировать цифрыfind_repeat_words: искать повторяющиеся слова
from asyncio import run as async_run
from prlps_speller import YandexSpeller
async def test():
speller = YandexSpeller(
format_text='html',
lang=['ru', 'en'],
check_yo=True,
ignore_urls=True,
ignore_tags=True,
ignore_capitalization=True,
ignore_digits=True,
)
text = 'елка била бальшая и високоя, мольчешечки радывались и плисали вакруг, напивая песинькю "Jinkl Belz".'
# получить готовый исправленный текст:
fixed = await speller.spelled(text)
print(fixed) # елка была большая и высокая, мальчишечки радовались и плясали вокруг, напевая песенку "Jingle Bells".
# вывод позиций ошибок и вариантов исправлений:
changes = await speller.spell_text(text)
print(changes)
# запуск теста:
async_run(test())
Metadata
Release files for prlps-speller 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prlps_speller-0.0.1.tar.gz | 4.4 kB | Without provenance | Details for prlps_speller-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prlps_speller-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for prlps_speller-0.0.1-py3-none-any.whl |
Total release size: 9.5 kB
Release files / prlps_speller-0.0.1.tar.gz
| Download URL | prlps_speller-0.0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
481f6744e85b01fa4d64877eef623eee6644383fbb4fa5966dbc809176442fa8
|
|
BLAKE2b-256 checksum How to use checksums |
e0e124d9bb5c67de536577a367312512950d829391ca03d73f8d16584b5e681a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / prlps_speller-0.0.1-py3-none-any.whl
| Download URL | prlps_speller-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22ebe1c823a697417ac632b6c3609a5ec9cefc3fb85ce902e514a618a4a8a751
|
|
BLAKE2b-256 checksum How to use checksums |
d08468d6d676d24bad5e5ce22ce8fe57f85bcad2454faa513c19d5d61176e2af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for prlps-speller 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.