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

To link against a libuv you already have (for example from a package manager) instead of the bundled copy, pass --use-system-libuv. The build asks the linker for uv by name, so its headers and library must be on the compiler's include and linker search paths. The option is on by default under MinGW. It has no effect on non-MinGW Windows builds, which always compile the bundled libuv:

python setup.py build_ext --use-system-libuv --inplace

On Windows with MSVC, INCLUDE and LIB must point at libuv's include and lib directories. The result links uv.lib and needs uv.dll at run time. Python 3.8 and later ignore PATH when loading an extension's dependencies, so call os.add_dll_directory on the libuv bin directory before importing winloop, or copy uv.dll beside the extension.

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

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.3
File Size Uploaded Provenance Actions
winloop-0.8.3.tar.gz 2.8 MB Without provenance Details for winloop-0.8.3.tar.gz

Built distributions (wheels)

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

Total release size: 15.3 MB

Release files / winloop-0.8.3.tar.gz

Download URL winloop-0.8.3.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
cf8b1926bb4dfd8b4335064f0885ced6a3050ca6ae9093affcd29bd2f0fb0ba3
BLAKE2b-256 checksum
How to use checksums
0fc59309073e4cacbe329826fe191ae5ca166fbf5fc85f357b0942b193cec497
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.3-cp315-cp315t-win_arm64.whl

Download URL winloop-0.8.3-cp315-cp315t-win_arm64.whl
Size 693.1 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
8008f6a80d92cf2cbf8a545302d9205a956d111afc996809d7000022c2494657
BLAKE2b-256 checksum
How to use checksums
4d4556d90f59906576ef58dd239ae118ae6a4a3aa7e030c9fcf3a9bb70639f66
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.3-cp315-cp315t-win_amd64.whl

Download URL winloop-0.8.3-cp315-cp315t-win_amd64.whl
Size 799.2 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
ff6577c66b04826c689eae817763c526d20debd26da7eaf7c2b3367b85a8c1f9
BLAKE2b-256 checksum
How to use checksums
e8bf64466ad1aa57bebec3f13e6aefa25333fbff6bc131d4623faa22b4ecaa9c
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.3-cp315-cp315-win_arm64.whl

Download URL winloop-0.8.3-cp315-cp315-win_arm64.whl
Size 645.5 kB
Tags CPython 3.15 Windows ARM64
SHA-256 checksum
How to use checksums
cc606cc0d09b291628002d27cf0f5f5f3d5c9730efd23e74fa883d1d71e005a4
BLAKE2b-256 checksum
How to use checksums
701a6824a737059d09c4755dff9af759efe8ee8e911e4e4ff44211b1ce10781d
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.3-cp315-cp315-win_amd64.whl

Download URL winloop-0.8.3-cp315-cp315-win_amd64.whl
Size 738.9 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
8f9bfd14736712995001dd8a86e9d6eb544d486bac543091f7b8ff81ab54021c
BLAKE2b-256 checksum
How to use checksums
7ca6794eec458cabcd0d8d76caef701f0bfcf6af22d3565adf842b8f3d674d61
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.3-cp314-cp314t-win_arm64.whl

Download URL winloop-0.8.3-cp314-cp314t-win_arm64.whl
Size 694.2 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
b7e2a145411e66a712ecf77109cfec3aa3e1760f5963c6980c9cc3e2d91f7ac4
BLAKE2b-256 checksum
How to use checksums
40a07e58432b74a3128fd3366541936567d0ed43e0419148494f6e0820b9338c
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.3-cp314-cp314t-win_amd64.whl

Download URL winloop-0.8.3-cp314-cp314t-win_amd64.whl
Size 798.3 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
a7b415b6c22c2c7fa4111ef4ac4559f80a74246d03b46cf8a18ddccd5d0dddc4
BLAKE2b-256 checksum
How to use checksums
b429f7dad7bc1fb25792078ed72c47c37235d59e0d210014a171d2ed16b70eee
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.3-cp314-cp314-win_arm64.whl

Download URL winloop-0.8.3-cp314-cp314-win_arm64.whl
Size 645.1 kB
Tags CPython 3.14 Windows ARM64
SHA-256 checksum
How to use checksums
39e2dbcfa1f8047c08a5470da783a2fb609846f2d139f764d3d033c49a415f2c
BLAKE2b-256 checksum
How to use checksums
c25d8242dee5eb15f5ac65f34c24ed948d10bcdc9fa3f1c7cb5c06affd62c88c
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.3-cp314-cp314-win_amd64.whl

Download URL winloop-0.8.3-cp314-cp314-win_amd64.whl
Size 739.5 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
590ec831b673c06b458037942880fb417859716b2ff0c98274a2eb24c6b061d0
BLAKE2b-256 checksum
How to use checksums
021a017049b380607e5e8cbc87c60602310bf752443448b4bde9a9c80306f7f1
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.3-cp313-cp313-win_arm64.whl

Download URL winloop-0.8.3-cp313-cp313-win_arm64.whl
Size 630.7 kB
Tags CPython 3.13 Windows ARM64
SHA-256 checksum
How to use checksums
a5b2c8b11a71f53276930bab0577deb149ea5258332c4eb71af4f04cd02fb8db
BLAKE2b-256 checksum
How to use checksums
095a91d34fa2c5dd48b14af6a6e1d8f4658bd61b559de9993450d1424caef418
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.3-cp313-cp313-win_amd64.whl

Download URL winloop-0.8.3-cp313-cp313-win_amd64.whl
Size 729.1 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
c7605aee8f2029d0be88b32a1454ac1fb83eab7e85fb083c2fdaa963298afc1c
BLAKE2b-256 checksum
How to use checksums
ec9d0440289d44ea2606593303175b7afeab0057f15f4fb0e2bec83b9e7869e1
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.3-cp312-cp312-win_arm64.whl

Download URL winloop-0.8.3-cp312-cp312-win_arm64.whl
Size 631.2 kB
Tags CPython 3.12 Windows ARM64
SHA-256 checksum
How to use checksums
cabf81564b73ad36b1f4b399ccab0072a75b5ebac0897b527f1e963492cc191d
BLAKE2b-256 checksum
How to use checksums
88ae1f6537007e8556ce7c7c3b7337c1c217cf624cf1d7eb24af0faa5267fbd1
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.3-cp312-cp312-win_amd64.whl

Download URL winloop-0.8.3-cp312-cp312-win_amd64.whl
Size 730.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
ae3771a94d7f03994bc94ac4b55fa7c10b50ec6202710b1c70d73a8b44c503bc
BLAKE2b-256 checksum
How to use checksums
17e4fc0f75451c190e57bd847a7d1955c510f5bde089cf8e72a501e7e416fb0d
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.3-cp311-cp311-win_arm64.whl

Download URL winloop-0.8.3-cp311-cp311-win_arm64.whl
Size 634.2 kB
Tags CPython 3.11 Windows ARM64
SHA-256 checksum
How to use checksums
daac655c39f79a7444ae2066b800119f7d52f7a0a1e010f91890aa8a6ec1d4a3
BLAKE2b-256 checksum
How to use checksums
29ca0c012ffffab9d0c738fa6992dd6f3a980e9f4aaebbbadbedc1b464978400
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.3-cp311-cp311-win_amd64.whl

Download URL winloop-0.8.3-cp311-cp311-win_amd64.whl
Size 708.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
a896f3bc198465db1d67a296b8506911457e53965a1e740d491057461d6245c5
BLAKE2b-256 checksum
How to use checksums
88186c0f4747f42b0ffdb4a73c4a1bdcb134a874e490977d3f15572d7637284f
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.3-cp310-cp310-win_arm64.whl

Download URL winloop-0.8.3-cp310-cp310-win_arm64.whl
Size 631.7 kB
Tags CPython 3.10 Windows ARM64
SHA-256 checksum
How to use checksums
01092efaa2040bc0ddf8cc78ab667084f7f3af9b67c39ba78f04093b4b7eb91b
BLAKE2b-256 checksum
How to use checksums
bc91b1f1902fa25328cf92b256293578d96ddb9a539aa7864283c9ac5df3aa39
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.3-cp310-cp310-win_amd64.whl

Download URL winloop-0.8.3-cp310-cp310-win_amd64.whl
Size 700.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
064a8b6d3c339bd54e943aed303c9c5285fd9231b0ccac459f81eb93af1b64ec
BLAKE2b-256 checksum
How to use checksums
51cd06247d7943db82c9f0486d6b4c22cc402027b33d14ccbc91fb96f0431821
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.3-cp39-cp39-win_arm64.whl

Download URL winloop-0.8.3-cp39-cp39-win_arm64.whl
Size 631.8 kB
Tags CPython 3.9 Windows ARM64
SHA-256 checksum
How to use checksums
c38ceab302bd379d1df5a6d02759f565b58a7b84258b95775e12e45c7f163f9a
BLAKE2b-256 checksum
How to use checksums
d5a88da928d275ded035073cd8b91a7134dc52a41949257f03a5a420bac3158f
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.3-cp39-cp39-win_amd64.whl

Download URL winloop-0.8.3-cp39-cp39-win_amd64.whl
Size 701.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
3260a0d980f28954e497efc95540665b7de6e9dbd622325c1b2eab3306b346d5
BLAKE2b-256 checksum
How to use checksums
92509968cc7fc91095793d92ed9d1e64f66430aabfc878653bb5d6555fd306e2
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.3

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