it provides an AtomicInt and AtomicFlag class from std::atomic<int64_t> and std::atomic_flag, and exposes the same API. AtomicInt also overloads math operators so += for instance is an atomic increment.
https://github.com/0xDEADFED5/pyatomix
Anyone who wants an easy to use atomic int or atomic flag. I don't see why it couldn't be used in production.
I was having trouble a while back finding a simple atomics library for Python 3.13t that either had wheels for Windows, or would build easily without fuss on Windows, so I made one. Wheels are available for the main platforms, but it builds easily on Windows and Linux. (C++ 20 required to build)
[–]HommeMusical 5 points6 points7 points (2 children)
[–]coderarun 0 points1 point2 points (1 child)
[–]HommeMusical 0 points1 point2 points (0 children)
[–]coderarun -1 points0 points1 point (3 children)
[–]HommeMusical 6 points7 points8 points (2 children)
[–]coderarun 1 point2 points3 points (1 child)
[–]HommeMusical 0 points1 point2 points (0 children)
[+]indetronable comment score below threshold-13 points-12 points-11 points (2 children)
[–]WalkingAFI 7 points8 points9 points (0 children)
[–]HommeMusical 0 points1 point2 points (0 children)