PyProcSync
Synchronize events between processes over the network. This package provides similar behaviour as Python’s threading.Event but it is designed to be used with multiple processes running on different computers.
An example use-case might be controlling multiple industrial robots handling anomalous materials, where timing is critical.
Free software: MIT license
Documentation: https://pyprocsync.readthedocs.io
Features
Uses Redis as a backend
About 1ms precision (see. perf_tests)
Synchronize events based on system clock (NTP is a must have)
Synchronize unlimited number of nodes with the same precision (Depends on the performance of Redis cluster)
Example
Simple example that synchronizes 4 nodes:
import redis
from pyprocsync import ProcSync
p = ProcSync(redis.from_url('redis://localhost:6379/0'))
# Do some work
p.sync("first", 4) # Block until all 4 nodes are reached the synchronization point
# Time sensitive work
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2021-04-05)
First release on PyPI.
Metadata
Release files for pyprocsync 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyprocsync-0.1.0.tar.gz | 15.5 kB | Without provenance | Details for pyprocsync-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyprocsync-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pyprocsync-0.1.0-py2.py3-none-any.whl |
Total release size: 22.2 kB
Release files / pyprocsync-0.1.0.tar.gz
| Download URL | pyprocsync-0.1.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32656f3414e3d404d835017f957bc799fc4eeb5fdd672f0edd0907e812ce2715
|
|
BLAKE2b-256 checksum How to use checksums |
9d13386a3d692cce50825fad0f9c571e7241a82f643d0569fef7eb1b535ec42e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Release files / pyprocsync-0.1.0-py2.py3-none-any.whl
| Download URL | pyprocsync-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f6870607d95905e0f1a749ad1aa1112efea7cda437eb0c7f7b6f1aecc3090ac7
|
|
BLAKE2b-256 checksum How to use checksums |
4740f375c9d9956cd70bcfea3af620de2a1755576d3840f651872cb123e4641b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Security for pyprocsync 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.