Skip to main content

A ctypes wrapper for Windows Semaphore Objects

Project description

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

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.

History

0.1.2 (2021-03-14)

  • Minor bug fixes

0.1.1 (2021-03-14)

  • First release on PyPI.

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

semaphore_win_ctypes-0.1.2.tar.gz (22.2 kB view hashes)

Uploaded Source

Built Distribution

semaphore_win_ctypes-0.1.2-py2.py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page