winuvloop is a Python package that automatically installs and configures the optimal event loop for your platform, setting up uvloop on Linux/POSIX systems and winloop on Windows, ensuring seamless cross-platform development.
Project description
winuvloop
winuvloop is a Python package that ensures you always use the best event loop for your platform.
It automatically sets up uvloop on Linux/POSIX systems and winloop on Windows, optimizing performance and compatibility without extra configuration.
By using winuvloop, you can streamline your development process and focus on writing your application code, knowing that the right event loop is always in place for seamless cross-platform functionality.
Features
- Cross-Platform Compatibility: Automatically installs
uvloopon POSIX systems andwinloopon Windows. - Easy Integration: Just add
winuvloopto yourpyproject.tomlorrequirements.txtand let it handle the rest. - Simplified Event Loop Setup: No need to worry about platform-specific event loop installation and initialization.
Installation
You can install winuvloop via pip:
pip install winuvloop
Or by adding it to your pyproject.toml in a Poetry-managed project:
poetry add winuvloop
Usage
Simply import the package, and use it as you would uv/win loop:
import winuvloop
# the preferred way to use win/uv loop is with the run method
uvwinloop.run(my_coroutine)
alternatively, you can install the loop globally:
import winuvloop
# The correct event loop is now installed and ready to use.
winuvloop.install()
Requirements
- Python 3.11 or higher
uvloopfor POSIX systemswinloopfor Windows systems
Platform Support
- POSIX (Linux, macOS): Installs
uvloop - Windows: Installs
winloop
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request or open an issue.
Contact
For any questions or suggestions, please contact aviadr1@gmail.com.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winuvloop-0.2.0.tar.gz.
File metadata
- Download URL: winuvloop-0.2.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8211649b11069aa5f0e3b5120a0e64fae5df41a759861d51816937fa63026ce7
|
|
| MD5 |
f43a3e583b14969e5426c60ba071aaa5
|
|
| BLAKE2b-256 |
76dd2811cd1b0bc8bef72e6e0f7eff15cce8fea378cfc5b12bc5ea3937d184ea
|
File details
Details for the file winuvloop-0.2.0-py3-none-any.whl.
File metadata
- Download URL: winuvloop-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2e94785609409fada08e069f3ca8c54f9ff1bb2a0a2a4466e42c6d14b4d6424
|
|
| MD5 |
23cc36456db4f3eb7f0b63d77470b3f1
|
|
| BLAKE2b-256 |
c32880556e7ad8fa94be4479b4ddf4baed6ccfa6acaae9395b39002b3ede4c63
|