Skip to content

ralexander-phi/semaphore_win_ctypes

Repository files navigation

Windows Semaphore ctypes

Latest Version Documentation Status

A ctypes wrapper for Windows Semaphore Objects

Use Case

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.

Dependencies

This module requires no runtime dependencies.

See Also

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:

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.