A ctypes wrapper for Windows Semaphore Objects
Project description
Windows Semaphore ctypes
A ctypes wrapper for Windows Semaphore Objects
Free software: MIT license
Documentation: https://semaphore-win-ctypes.readthedocs.io.
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:
windows semaphore helper – C++ demo of working with Windows Semaphore APIs
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
Release history Release notifications | RSS feed
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
File details
Details for the file semaphore_win_ctypes-0.1.2.tar.gz
.
File metadata
- Download URL: semaphore_win_ctypes-0.1.2.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4f82a4983c691d9f635c4832a61a5c557ee875680190918bfc4c44cee55492e |
|
MD5 | fbc0fde502bf857f10d36915e54a7bbb |
|
BLAKE2b-256 | d3c139f78176e81ed0ccb84ba6de690736ea279ee2fea446e6616c3944efe6c5 |
File details
Details for the file semaphore_win_ctypes-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: semaphore_win_ctypes-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e56a4bfedc11c58cbe1d5cd00185ee42ca961125125f1f5ac625b99ef565b8a |
|
MD5 | b13c0db68cfaf98f894f74d81b322c5c |
|
BLAKE2b-256 | 66049b53d4345399909ed2a42b4a4bae801e3f1e8fd79025689e0947b486fd06 |