Skip to main content

Ruff IDIM

Winloop

PyPI version PyPI - Downloads License: MIT License: Apache-2.0

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

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for winloop 0.8.2
File Size Uploaded Provenance Actions
winloop-0.8.2.tar.gz 2.8 MB Without provenance Details for winloop-0.8.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for winloop 0.8.2
File Actions
winloop-0.8.2-cp315-cp315t-win_arm64.whl CPython 3.15 CPython 3.15 free-threading Windows ARM64 Details for winloop-0.8.2-cp315-cp315t-win_arm64.whl
winloop-0.8.2-cp315-cp315t-win_amd64.whl CPython 3.15 CPython 3.15 free-threading Windows x86-64 Details for winloop-0.8.2-cp315-cp315t-win_amd64.whl
winloop-0.8.2-cp315-cp315-win_arm64.whl CPython 3.15 CPython 3.15 Windows ARM64 Details for winloop-0.8.2-cp315-cp315-win_arm64.whl
winloop-0.8.2-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for winloop-0.8.2-cp315-cp315-win_amd64.whl
winloop-0.8.2-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details for winloop-0.8.2-cp314-cp314t-win_arm64.whl
winloop-0.8.2-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for winloop-0.8.2-cp314-cp314t-win_amd64.whl
winloop-0.8.2-cp314-cp314-win_arm64.whl CPython 3.14 CPython 3.14 Windows ARM64 Details for winloop-0.8.2-cp314-cp314-win_arm64.whl
winloop-0.8.2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for winloop-0.8.2-cp314-cp314-win_amd64.whl
winloop-0.8.2-cp313-cp313-win_arm64.whl CPython 3.13 CPython 3.13 Windows ARM64 Details for winloop-0.8.2-cp313-cp313-win_arm64.whl
winloop-0.8.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for winloop-0.8.2-cp313-cp313-win_amd64.whl
winloop-0.8.2-cp312-cp312-win_arm64.whl CPython 3.12 CPython 3.12 Windows ARM64 Details for winloop-0.8.2-cp312-cp312-win_arm64.whl
winloop-0.8.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for winloop-0.8.2-cp312-cp312-win_amd64.whl
winloop-0.8.2-cp311-cp311-win_arm64.whl CPython 3.11 CPython 3.11 Windows ARM64 Details for winloop-0.8.2-cp311-cp311-win_arm64.whl
winloop-0.8.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for winloop-0.8.2-cp311-cp311-win_amd64.whl
winloop-0.8.2-cp310-cp310-win_arm64.whl CPython 3.10 CPython 3.10 Windows ARM64 Details for winloop-0.8.2-cp310-cp310-win_arm64.whl
winloop-0.8.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for winloop-0.8.2-cp310-cp310-win_amd64.whl
winloop-0.8.2-cp39-cp39-win_arm64.whl CPython 3.9 CPython 3.9 Windows ARM64 Details for winloop-0.8.2-cp39-cp39-win_arm64.whl
winloop-0.8.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for winloop-0.8.2-cp39-cp39-win_amd64.whl

Total release size: 15.3 MB

Release files / winloop-0.8.2.tar.gz

Download URL winloop-0.8.2.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
41d0ae9fd4fdd86268efbfb12813f96d3141705ba96a6b413ce86972b6750d82
BLAKE2b-256 checksum
How to use checksums
8f48b49b0d4ec3abc1e20368ccb22c6e04a6e75f5492c9424308e8c432993060
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.2-cp315-cp315t-win_arm64.whl

Download URL winloop-0.8.2-cp315-cp315t-win_arm64.whl
Size 691.9 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
6c44299318bb058ccff58cc9d105982f0ab3d4de8821f73a412218fcc5554126
BLAKE2b-256 checksum
How to use checksums
e8e56b569541c302bad0000adbef05234546f1a8709fd1d5ad62ca96c6eb0cbb
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.2-cp315-cp315t-win_amd64.whl

Download URL winloop-0.8.2-cp315-cp315t-win_amd64.whl
Size 798.1 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
f749f2290f373ca7d8faf0405f225a400f2ff404166666e531f451d5117e58cd
BLAKE2b-256 checksum
How to use checksums
d5346f797c8824783025f16fcd2d0574a2de80116595571fff2fc90f7f36189e
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.2-cp315-cp315-win_arm64.whl

Download URL winloop-0.8.2-cp315-cp315-win_arm64.whl
Size 644.5 kB
Tags CPython 3.15 Windows ARM64
SHA-256 checksum
How to use checksums
6e30645f40970e71fb76c1a082a2be85c1aaeecc1e727ae56e35e5e71e6f8e1d
BLAKE2b-256 checksum
How to use checksums
82f1e5dd56a9549c55a88a3d16fcbd8c74fc04bc30aec77371c35dc5ebf63d9d
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.2-cp315-cp315-win_amd64.whl

Download URL winloop-0.8.2-cp315-cp315-win_amd64.whl
Size 738.3 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
42fa84501afdb28ca15bfb9ac048426fd763bb041f76ff68137ee22fcdb1e5b9
BLAKE2b-256 checksum
How to use checksums
fdc4850edec550004faa72de54418833434c23569749c52f4f095d045274ef8a
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.2-cp314-cp314t-win_arm64.whl

Download URL winloop-0.8.2-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
dc3c65ed02fac2316dcda2732f1d771d458f32505e625b1f193ebecfbb631c6c
BLAKE2b-256 checksum
How to use checksums
a1e5b2861afc86c955eb9d7a61dc757e1dc978e432f2bb567c7a077ef5553442
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.2-cp314-cp314t-win_amd64.whl

Download URL winloop-0.8.2-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
daee0f8e506d8ca27b71bf994649ed6a8bb49583e9d9b38273384bd8d7bdc756
BLAKE2b-256 checksum
How to use checksums
8a032b76be0851ee4948fa22d8ea27ceab4e0358c655d1278bea28ed52313f3b
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.2-cp314-cp314-win_arm64.whl

Download URL winloop-0.8.2-cp314-cp314-win_arm64.whl
Size 644.1 kB
Tags CPython 3.14 Windows ARM64
SHA-256 checksum
How to use checksums
937d833903e832acb19b0a633c3fb83ad721c7418ce3244ea17ac5a3376bf30a
BLAKE2b-256 checksum
How to use checksums
4a7cbef3962b1a1e457ba08a433dae8f779eea945faedd766c7aa565a456d995
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.2-cp314-cp314-win_amd64.whl

Download URL winloop-0.8.2-cp314-cp314-win_amd64.whl
Size 738.9 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
c3ea281c781a6d884b237b1a8a9e495ae997b8c6df84d0cf68a27793c959412b
BLAKE2b-256 checksum
How to use checksums
a18dbd5d9fdfbf17f28c79d566b62eb6872c5ef9bd662d0d06c7a54aefbca73d
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.2-cp313-cp313-win_arm64.whl

Download URL winloop-0.8.2-cp313-cp313-win_arm64.whl
Size 630.4 kB
Tags CPython 3.13 Windows ARM64
SHA-256 checksum
How to use checksums
7d8f53a1596ca3379a8de8cb6eed12a0d078f5c66d583f225abe3c8b04220e3c
BLAKE2b-256 checksum
How to use checksums
e3ca68b49af3eb1762f12316680c49e242940958169f983c3cb96f2d98f0b908
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.2-cp313-cp313-win_amd64.whl

Download URL winloop-0.8.2-cp313-cp313-win_amd64.whl
Size 728.4 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
7587879fc40e8bbecb3943cd8953baeda61628252ec1a32d7897b1e16fe80aa9
BLAKE2b-256 checksum
How to use checksums
6959b197929939ac863bd631d2246ea78a1402af9e1b97b8a393fa587aa381bc
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.2-cp312-cp312-win_arm64.whl

Download URL winloop-0.8.2-cp312-cp312-win_arm64.whl
Size 630.2 kB
Tags CPython 3.12 Windows ARM64
SHA-256 checksum
How to use checksums
4aa8f4a1883867c809574fb3d1b12eb15aa35705a896a51520c30efb2e83a7da
BLAKE2b-256 checksum
How to use checksums
a11231259f0bdb311776db623b00abdaca31affb2a86e159c05e3e409c754a8a
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.2-cp312-cp312-win_amd64.whl

Download URL winloop-0.8.2-cp312-cp312-win_amd64.whl
Size 729.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
31abeaa2b2faac897ea9ff9a129bcb4c2d8eed11ebc73bed2baf3112e9bf14c3
BLAKE2b-256 checksum
How to use checksums
bb73e171c4b7a2f50747c6fba9268d45e392e4dfdcbab6a43ab6cce19d795d70
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.2-cp311-cp311-win_arm64.whl

Download URL winloop-0.8.2-cp311-cp311-win_arm64.whl
Size 633.0 kB
Tags CPython 3.11 Windows ARM64
SHA-256 checksum
How to use checksums
e04dca3580f3e19a045089796500802854fef99e426e82411360e5bafa6d7532
BLAKE2b-256 checksum
How to use checksums
00e79bd15d9225e4b7f6bced83ac88f8d0fbcc06cf7f41c9a0e188cb229b865e
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.2-cp311-cp311-win_amd64.whl

Download URL winloop-0.8.2-cp311-cp311-win_amd64.whl
Size 707.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9a83834d546b51f96dab208721021573ac463d1b9c5f152a7a92a14bbc0a0af9
BLAKE2b-256 checksum
How to use checksums
2519833bc11689d899a8e4b81a3fa182d5e1d41ab87b755c9baaa51dd576b5a1
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.2-cp310-cp310-win_arm64.whl

Download URL winloop-0.8.2-cp310-cp310-win_arm64.whl
Size 630.8 kB
Tags CPython 3.10 Windows ARM64
SHA-256 checksum
How to use checksums
8850e7fd39897ded393755d380c9fb2c1c9bd1364456e98b7ab4dc7d9aa52a62
BLAKE2b-256 checksum
How to use checksums
f8c05c683cb28e6cb8cc8403749f4343b6a3401b2a956a664f69ab8fbf0d79db
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.2-cp310-cp310-win_amd64.whl

Download URL winloop-0.8.2-cp310-cp310-win_amd64.whl
Size 699.7 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
47192168e08a69258686926de19956caf219bbb6a0dfcbcd53f3529d7aee9064
BLAKE2b-256 checksum
How to use checksums
3f43a67996f822b684b612441d9c4c79167dc04ea5d49b5cddbbae7ad3574aca
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.2-cp39-cp39-win_arm64.whl

Download URL winloop-0.8.2-cp39-cp39-win_arm64.whl
Size 630.8 kB
Tags CPython 3.9 Windows ARM64
SHA-256 checksum
How to use checksums
00dbd7f32f7f1e83da5857028b11cd9b79d214803e68660231c8a942ea5855da
BLAKE2b-256 checksum
How to use checksums
e3972711336a6aadc39dac90ff45207d7d0e9e11cd5e3f1b606c4b99e462cfb0
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.2-cp39-cp39-win_amd64.whl

Download URL winloop-0.8.2-cp39-cp39-win_amd64.whl
Size 700.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
1bc6f79b07e51c64ebd53e3d6f7067540ea8bab8d7a4b94ecc30f9827c94f892
BLAKE2b-256 checksum
How to use checksums
d4ee9b4b923a3a380908c71d27f15cd4fc06b82135cf683c889147e6fe3df9c7
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.2

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.

Release history Release notifications | RSS feed

This release

0.8.2 This release

19 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page