Winloop
An alternative library for uvloop compatibility with Windows because let's face it. Windows' Python asyncio standard library is garbage, especially when Windows Defender decides to eat half of your RAM.
I never really liked the fact that I couldn't make anything run faster especially when you have fiber internet connections in place and you've done all the optimizations you could possibly think of. It always felt disappointing when libuv is available for Windows but Windows was never compatible with uvloop.
Since nobody was willing to step in after so many years of waiting, I went ahead and downloaded the source code for uvloop and started modifying the source code to be Windows compatible by carefully removing and changing parts that were not made for Windows. Many hours of research went into making this library.
The differences with uvloop is that forking has been fully disabled and some smaller API calls had to be changed, error handling has been carefully modified and subprocesses release the GIL instead of forking out...
There is a performance increase of about 5 times with Winloop compared to using the WindowsSelectorEventLoopPolicy and WindowsProactorEventLoopPolicy which have been known to trigger SSL problems in Python 3.9. Winloop is a very good replacement for solving those SSL problems as well. This library also has comparable performance to its brother uvloop.
How to install Winloop on your Windows Operating System
pip install winloop
You can also clone the repository and build the extension yourself by running the command below if you wish to use or build this library locally. Note that you will need Cython and The Visual C++ extensions to compile this library on your own.
python setup.py build_ext --inplace
Testing with UV
The uv package manager is the preferred method for testing winloop and it's author uses ruff and uv by default.
uv venv
uv pip install winloop
If your bilding and testing it from your own fork the following should work.
uv pip install -e .
If your planning to setup.py build_ext commands you will need to install setuptools and cython
uv pip install cython setuptools
Reporting issues
If you find any bugs with this library be sure to open up an issue in the issuetracker. The Winloop Contributors and the Owner when available will be happy try to help you figure out and diagnose your problems.
How To Use Winloop When Uvloop is not available
# Here's A small Example of using winloop when uvloop is not available to us
import sys
import aiohttp
async def main():
async with aiohttp.ClientSession("https://httpbin.org") as client:
async with client.get("/ip") as resp:
print(await resp.json())
if __name__ == "__main__":
if sys.platform in ('win32', 'cygwin', 'cli'):
from winloop import run
else:
# if we're on apple or linux do this instead
from uvloop import run
run(main())
Alternatively, There's another way to do this involving a smaller resource called winuvloop which combines both uvloop and winloop together.
import aiohttp
import winuvloop
async def main():
async with aiohttp.ClientSession("https://httpbin.org") as client:
async with client.get("/ip") as resp:
print(await resp.json())
if __name__ == "__main__":
winuvloop.run(main())
Videos
-
By me: https://www.youtube.com/watch?v=tz9RYJ6aBZ8 (I might make a tutorial on how to use and install winloop it for those who have reading problems)
-
My Presentation and Virtual Confrence Because I'm too busy to go to python conventions: https://www.youtube.com/watch?v=Cbb6trkKWXY
Contributing
I put my heart and soul into this library ever since it began and any help is appreciated and means a lot to me, I have other things I wish to explore so every little bit helps. No matter what I go through in life, my heart is always here.
How Can I contribute?
- Forking the library.
- Mirroring Winloop's improvements on uvloop's side.
- Reviewing pull requests.
- Fixing or editing workflows.
- Finding and editing spelling mistakes.
Metadata
Release files for winloop 0.8.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 |
|---|---|---|---|---|
| winloop-0.8.1.tar.gz | 2.8 MB | Without provenance | Details for winloop-0.8.1.tar.gz |
Built distributions (wheels)
Total release size: 12.4 MB
Release files / winloop-0.8.1.tar.gz
| Download URL | winloop-0.8.1.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2033e3ca84395d2d85a96364f430710f1b22abc93561855e4f63b23603f301c2
|
|
BLAKE2b-256 checksum How to use checksums |
e9f9190ca15dcc72b9ffa3cca24924fe80c9dc37d40fccc92d330ef342c30dc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp314-cp314t-win_arm64.whl
| Download URL | winloop-0.8.1-cp314-cp314t-win_arm64.whl |
|---|---|
| Size | 693.1 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows ARM64 |
|
SHA-256 checksum How to use checksums |
50b4be9db582277d126dccb21419d8206e67016cb7fba898506446f400aeb8d7
|
|
BLAKE2b-256 checksum How to use checksums |
cff4ee66971f1c937f58848a68d4a86f7099aabba109640c5e7cf011b095a1c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp314-cp314t-win_amd64.whl
| Download URL | winloop-0.8.1-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 797.3 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9a289087fe48bcf800a69068734544e91b9e90fa4a5ecb6cf859e421d47e1844
|
|
BLAKE2b-256 checksum How to use checksums |
5988a82ce4017383806b88bbf85917a3ebccaede00e7ee37ec1a19f08c6e4f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp314-cp314-win_arm64.whl
| Download URL | winloop-0.8.1-cp314-cp314-win_arm64.whl |
|---|---|
| Size | 644.1 kB |
| Tags | CPython 3.14 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
4ceb330dca4df17cf1fe0a9d3667f0e3c8f28f0b5f105c0c37f0935f6aa08c84
|
|
BLAKE2b-256 checksum How to use checksums |
539d37b6d694e31e9a8fa9ebab98967b85a74c504aaf7653037203e4a6e7dc43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp314-cp314-win_amd64.whl
| Download URL | winloop-0.8.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 738.9 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b323ba9fc6a6cc23c14d27fede3668636f5a8508c415972b48c0d31dd5c3403e
|
|
BLAKE2b-256 checksum How to use checksums |
27a6a3e0c0ae0232be0e7b41beb7410da08ef42140cbbfcb37753f8193514dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp313-cp313-win_arm64.whl
| Download URL | winloop-0.8.1-cp313-cp313-win_arm64.whl |
|---|---|
| Size | 630.3 kB |
| Tags | CPython 3.13 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
041de50d9273b2150c12d743f8ee0c1512d66b72204ef8abaf8ad58e50ccb7cb
|
|
BLAKE2b-256 checksum How to use checksums |
ccdd42ae56be8cdc7424c14c0615a4195c27f9d6617368d09fdae138f8902878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp313-cp313-win_amd64.whl
| Download URL | winloop-0.8.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 728.4 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d91bb29d169cdaf2cc5276c037c63fbbf46ea36c845fbeb8c1a85ad75458a4ff
|
|
BLAKE2b-256 checksum How to use checksums |
31e7af444eb06d0cde50ca16bcac9d287c26a7dc397ae6be16af9522b4d2eeeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp312-cp312-win_arm64.whl
| Download URL | winloop-0.8.1-cp312-cp312-win_arm64.whl |
|---|---|
| Size | 630.2 kB |
| Tags | CPython 3.12 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
398da310ecaf4c1c0d10cc1c3a14039a24ce8bedec623f4931ab406ae8b8cd90
|
|
BLAKE2b-256 checksum How to use checksums |
a622c36703894b57d0ffe0d5653ce9b849491a5663c2d2dca8563c6b43f305e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp312-cp312-win_amd64.whl
| Download URL | winloop-0.8.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 729.4 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
54a3b6ac6511eef0171ba4c8020437e12114092965384a18a1237fa214a14043
|
|
BLAKE2b-256 checksum How to use checksums |
5928b9de0c51a7ddac51a429af3201a107b6bcf018b7eaa43a942eae45c96a28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp311-cp311-win_arm64.whl
| Download URL | winloop-0.8.1-cp311-cp311-win_arm64.whl |
|---|---|
| Size | 633.0 kB |
| Tags | CPython 3.11 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
bcdc00cb6608617ea1a7ad78bcd2a4085c2c99eae2eab23bdf1d9d37dea0eed7
|
|
BLAKE2b-256 checksum How to use checksums |
dd23a508641bee583ac2a0cb66344efa2b773335787ae2411e3c4819f39bf217
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp311-cp311-win_amd64.whl
| Download URL | winloop-0.8.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 707.8 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
258848ec45555c0aa59b56e6a2d3292c6b5f7a72cd9bbf208ea569cc63b6ff5b
|
|
BLAKE2b-256 checksum How to use checksums |
a23c637f602bd51339a8187060f299ee1df221f85c6b88bd7cc447cc37aebab8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp310-cp310-win_arm64.whl
| Download URL | winloop-0.8.1-cp310-cp310-win_arm64.whl |
|---|---|
| Size | 630.8 kB |
| Tags | CPython 3.10 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
3b728f745c847de52ff69c51cf2269cf76dcbfd5da1dd0887fa316e83594bbf7
|
|
BLAKE2b-256 checksum How to use checksums |
96e9997e5ef961737447eb84700820da0394bd809ad0d5b0f45394d308f10330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp310-cp310-win_amd64.whl
| Download URL | winloop-0.8.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 699.7 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9c8dc4605d71de7195554d02c9aa78377d88c381d9865821d5cc804013bad229
|
|
BLAKE2b-256 checksum How to use checksums |
a43478886660e1f5782c7a905e8499466e003b9138138d06da88cee9320b1c0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp39-cp39-win_arm64.whl
| Download URL | winloop-0.8.1-cp39-cp39-win_arm64.whl |
|---|---|
| Size | 630.8 kB |
| Tags | CPython 3.9 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
593e715a8ea5db16afca7da8cf2d0935affb366b26ba86b84625005df0718c5b
|
|
BLAKE2b-256 checksum How to use checksums |
aa2c82df7fff56769327049e7572fa8a815c2b36b3429546c0c4855d93b975e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / winloop-0.8.1-cp39-cp39-win_amd64.whl
| Download URL | winloop-0.8.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 700.7 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
87743c87a444e02c19fe780a1400f88d6e9f562eed08039fe5a7acd704ae6a78
|
|
BLAKE2b-256 checksum How to use checksums |
f59bf96fddc976299e91d43291e3467cfb820031f59531ba7d0c3b878c1f913a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for winloop 0.8.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.