Данная библиотека НЕ является официальной, и не пытается ей казаться. Данная библиотека разрабатывается исключительно в личных интересах, и использует только общедоступные endpoint'ы.
Возможности
- Асинхронная архитектура (
asyncio,aiohttp) - Поддержка пикового измерения скорости (реальные пиковые Mbps, как в браузере)
- Умное использование проб (probes) с серверов Яндекса
- Полная типизация (через
pydantic) - Поддержка измерений Download, Upload, Latency
- Совместимость с Python 3.11+
- Возможность интеграции в любые системы мониторинга или DevOps пайплайны
Пример использования
import asyncio
from yaspeedtest.client import YaSpeedTest
async def main():
ya = await YaSpeedTest.create()
result = await ya.run()
print(f"Ping: {result.ping_ms:.2f} ms")
print(f"Download: {result.download_mbps:.2f} Mbps")
print(f"Upload: {result.upload_mbps:.2f} Mbps")
asyncio.run(main())
# Ping: 1.84 ms
# Download: 939.17 Mbps
# Upload: 870.29 Mbps
Как это работает
- Клиент делает запрос к Яндекс
- Сервер возвращает набор доступных probe-серверов (latency, download, upload)
- Для каждого типа выполняются асинхронные измерения:
- Latency — последовательные пинги к малым ресурсам (latency probes)
- Download — скачивание файлов
- Upload — отправка данных
- Результаты агрегируются в объект SpeedResult, содержащий:
- Минимальный пинг
- Пиковую скорость загрузки
- Пиковую скорость отдачи
🧩 Более подробная документация доступна по посылке GitHub ErilovNikita/yaspeedtest
Release files for yaspeedtest 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yaspeedtest-0.1.7.tar.gz | 20.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yaspeedtest-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.8 kB
Release files / yaspeedtest-0.1.7.tar.gz
| Download URL | yaspeedtest-0.1.7.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53b5b18ce8e5ff4696d176aaccc391d7e8c1c10687dbc8edfc0b7af69f51f549
|
|
BLAKE2b-256 checksum How to use checksums |
b965b6faf5deff34048ddf2a175ca646487e9b7973187c0738899ad9eb2e9ce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2025.
Transparency logRelease files / yaspeedtest-0.1.7-py3-none-any.whl
| Download URL | yaspeedtest-0.1.7-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b438dfb73474864f45e86423202ccb1f16510e8a65cc684895d8879d0834e338
|
|
BLAKE2b-256 checksum How to use checksums |
5c9cff3dfc71e243795c6253eaffe39550d0ca0b8303531061769f4dc195172f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2025.
Transparency log