A ctypes wrapper for Windows Semaphore Objects
- Free software: MIT license
- Documentation: https://semaphore-win-ctypes.readthedocs.io.
This module was created to overcome limitations of Python's built-in semaphore support. Specifically, the built-in semaphores:
- Can only be shared between python processes if a common parent python process coordinates
- Cannot be acquired by code written in other programming languages
Instead, this module provides wrappers for these low level Windows Semaphore APIs:
Since the Windows Semaphore API uses named semaphores to permit sharing between processes, you can now share your semaphore more freely. Check the documentation of those APIs for details about how semaphores behave on Windows.
This module requires no runtime dependencies.
PyPI:
Documentation:
Related Python standard library code:
Similar work on other platforms:
- POSIX IPC for better semaphores on POSIX (I.E. Linux, UNIX-like, etc.) OSes.
Other items:
- windows semaphore helper -- C++ demo of working with Windows Semaphore APIs
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.