Sync-stream
This project is designed for providing the synchoronization of the stdout / stderr among different threads, processes, devices or hosts. The package could be used for the following cases:
- Use
syncstream.LineBuffer: Multiple threads are created. The messages (stdout) from different threads are required to be collected. - Use
syncstream.LineProcBufferin the main process, andsyncstream.LineProcMirrorin the sub-processes: Multiple sub-processes are created on the same device. The stdout / stderr of each process is redirected to aLineProcMirror, and the results are collected byLineProcBuffer. - Use
syncstream.LineFileBuffer: Multiple processes are created. These processes may be deployed on different devices (even with different platforms), but all devices could get accessed to the same shared disk. In this case, the message could be shared by locked files. Each process would hold an independentLineFileBufferpointing to the same log files. - Use
syncstream.LineHostBufferon the server side, andsyncstream.LineHostMirroron the client side: Multiple processes are deployed on different devices, and they could not share the same disk. In this case, the message are synchronized by the web service. Each process would hold aLineHostMirror, and the results would be collected byLineHostBuffer.
The basic package would not contain the file and host modules. To install the package, please use the following options:
pip install syncstream[option1,option2...]
| Option | Supports |
|---|---|
file |
Install dependencies for the file module. The module provides syncstream.LineFileBuffer. |
host |
Install dependencies for the host module. The module provides syncstream.LineHostBuffer, and syncstream.LineHostMirror. |
test |
Install dependencies for running tests. |
dev |
Install dependencies for developers. |
Documentation
View the documentation here: :blue_book: https://cainmagi.github.io/sync-stream/
Update reports
See the versions in the CHANGELOG :spiral_notepad: file.
Metadata
Release files for syncstream 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| syncstream-1.2.2.tar.gz | 51.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| syncstream-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.7 kB
Release files / syncstream-1.2.2.tar.gz
| Download URL | syncstream-1.2.2.tar.gz |
|---|---|
| Size | 51.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80b18e1ba6251c6cfc0779b334e63b73391b19d34520d051d45accdfa9da6d8f
|
|
BLAKE2b-256 checksum How to use checksums |
6b62aca061cfe15de00348d9faaea387242cbcdee453c1b65f0ab48f5b0948d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 8, 2025.
Transparency logRelease files / syncstream-1.2.2-py3-none-any.whl
| Download URL | syncstream-1.2.2-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a888a3f6cc588230fb1cea3f8f4c6492c7c49ca191dcb6a44de6b26eb6ff5516
|
|
BLAKE2b-256 checksum How to use checksums |
b6ab8efb7580b663b89c49d65b712a2b32d7b3fe3b32dbdad5631902424dbca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 8, 2025.
Transparency log