Skip to main content

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


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.2.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

communica-0.2.2-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file communica-0.2.2.tar.gz.

File metadata

  • Download URL: communica-0.2.2.tar.gz
  • Upload date:
  • Size: 25.4 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.65.0 CPython/3.8.10

File hashes

Hashes for communica-0.2.2.tar.gz
Algorithm Hash digest
SHA256 399d711b9dc5f63bf0212f4ec3463237f8afdcae93eb1578999b1ac31391bdd3
MD5 446971f7aa49792c1574b554c08ff32a
BLAKE2b-256 1d662a0647c5172887023ccc9f71fdf94cee2818618a90e1bd5c1ed4572959a4

See more details on using hashes here.

File details

Details for the file communica-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: communica-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 27.9 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.65.0 CPython/3.8.10

File hashes

Hashes for communica-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2656e3927cfe891783840fa5b29b41d7ad90c69984ecfd8c219265498fb68eb4
MD5 fce007882f42ba0362f597e87ac9ff2f
BLAKE2b-256 ce7865281f436e20d4fbd99e168cc2f839afe6ed67b2cb101ea30aabf6225ec6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page