pipe-nonblock 
Non-blocking multiprocessing pipe
Installing
pip install pipe_nonblock
Supported versions
- Python 3.4+
Usage
from pipe_nonblock import Pipe
c1, c2 = Pipe(duplex=True, conn1_nonblock=True, conn2_nonblock=True) # create a new duplex non-blocking pipe
assert len(list(c2.recv(32))) == 0 # try receive data from a connection, it's empty at the moment
c1.send('foo') # send python string object
buf, = c2.recv(32) # recv return generator with received objects
assert buf == 'foo'
c2.send('bar')
buf, = c1.recv(32)
assert buf == 'bar'
Overview of Pipe function
def Pipe(duplex, conn1_nonblock, conn1_nonblock) -> Tuple[connection1, connection2]:
| parameter | type | description |
|---|---|---|
| duplex | bool | If duplex is True (the default) then the pipe is bidirectional. If duplex is False then the pipe is unidirectional: conn1 can only be used for receiving messages and conn2 can only be used for sending messages. |
| conn1_nonblock | bool | If conn1_nonblock is True then the connection1 is non-blocking |
| conn2_nonblock | bool | If conn2_nonblock is True then the connection2 is non-blocking |
Metadata
Release files for pipe-nonblock 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pipe_nonblock-0.4.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pipe_nonblock-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / pipe_nonblock-0.4.tar.gz
| Download URL | pipe_nonblock-0.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8df09d80a9baf65c6b55e0680a69426240eb770ff874d7ef5189a5da4db6d982
|
|
BLAKE2b-256 checksum How to use checksums |
089b83e3c840cef1df41aa8be47c86e85c8cc39fa3aa4765f982e8fc88527fa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.1
|
Release files / pipe_nonblock-0.4-py3-none-any.whl
| Download URL | pipe_nonblock-0.4-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d45d2e8e42efcf29eeede5938b97cdec63f5380df64dbda6d9679858f9114c7
|
|
BLAKE2b-256 checksum How to use checksums |
6262964d7c150eea0da9d035a4dabae04afc8ad87665fb8d7ed9f1fc9930b0e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.1
|