Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Asynchronous python library to test connection speed, based on the speedtest project.

License

NotificationsYou must be signed in to change notification settings

py-paulo/aiotestspeed


AIO Speedtest

AIO Speedtest is a library written in Python to perform speed tests asynchronously and programmatically.


This project was made based on the existingSpeedtest from which we shared several code snippets, what I did were few modifications to work asynchronously.

Basic Usage

import asynciofrom aiotestspeed.aio import Speedtestunits = ('bit', 1)async def main():    s: Speedtest = await Speedtest()    await s.get_best_server()    await s.download()    await s.upload()    print('Ping: %s ms\nDownload: %0.2f M%s/s\nUpload: %0.2f M%s/s' %          (s.results.ping,          (s.results.download / 1000.0 / 1000.0) / units[1],          units[0],          (s.results.upload / 1000.0 / 1000.0) / units[1],          units[0]))loop = asyncio.get_event_loop()loop.run_until_complete(main())loop.close()

About

Asynchronous python library to test connection speed, based on the speedtest project.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp