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.3.0a1.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

communica-0.3.0a1-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file communica-0.3.0a1.tar.gz.

File metadata

  • Download URL: communica-0.3.0a1.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.8.10

File hashes

Hashes for communica-0.3.0a1.tar.gz
Algorithm Hash digest
SHA256 4822da976b6223d7b7a1ec3a489cdaeef1c8a137486745efaff76e997380982c
MD5 645739d6f589910fb80c1a22af4c5afd
BLAKE2b-256 1ba538c7dc94ae96324da7408d8eeffdba75a4aa4121c41309b0dc95df45cca1

See more details on using hashes here.

File details

Details for the file communica-0.3.0a1-py3-none-any.whl.

File metadata

  • Download URL: communica-0.3.0a1-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.8.10

File hashes

Hashes for communica-0.3.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e5346629cafa3457faf2b909fe9e04fd168fbae9684c7187bed2a557e755c87
MD5 52b86fbb44f244252ddf5918bd108ee8
BLAKE2b-256 0988827e58c2c1e94c9d26a6b2f654d9d02a412e8ef52690f89fca0737f2ad98

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