Easy to use IPC library
Project description
Easy to use IPC library
This library is still in development process.
There will be added Pub/Sub entities and data validation in
serializers with pydantic and dataclass-factory libraries.
Stream connectors has no acknowledgements at the moment,
so messages on service restart will be lost
(they will be lost anyway on restarting side, but with acks loss can be less)
Plug-n-play IPC
Idea
Contains two main entities: Client
and Server
, which uses Connectors
to create Connections
.
In most cases, there are one server and few clients. After successful connect there is no difference between them, any side can make requests to other.
Currently available connectors:
Connector | Description |
---|---|
LocalConnector | Uses Named Pipes on Windows and Unix domain sockets on other systems, if available |
TcpConnector | Uses TCP/IP protocol, has ability to specify SSLContext |
RmqConnector | Uses RabbitMQ server, has caveats (documented in connector) |
The most stable connector right now is RmqConnector. Other works too, but lose messages on every disconnect.
Extras
You can install additional dependencies for various features
pip install communica[extraname1, extraname2]
Extra name | Feature |
---|---|
orjson | Faster JSON library, recommended with CPython |
rabbitmq | RmqConnector, which use AMQP server for communication |
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
communica-0.2.1b1.tar.gz
(24.8 kB
view details)
Built Distribution
File details
Details for the file communica-0.2.1b1.tar.gz
.
File metadata
- Download URL: communica-0.2.1b1.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a9e41ca204400d069bae39f7a518c53132bf25e7033c541cf595c5dbc1aa419 |
|
MD5 | ebb84c435dd58913bb01d9ff8697a714 |
|
BLAKE2b-256 | 503cbce5c30a20d7d25de5186fd1150808f9a609660b5f0e048e37fdf705e892 |
File details
Details for the file communica-0.2.1b1-py3-none-any.whl
.
File metadata
- Download URL: communica-0.2.1b1-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8de8c6a6bdf5e952b29d437e6dd8bc1a44a78d9c415b89467151d13f428957b8 |
|
MD5 | bc357b18778fda97e71fcf9707b07f3c |
|
BLAKE2b-256 | abe8384904c6fc9a8da88f39427ae28ededd21759b48808437f08456d194877e |