Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

communica

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

communica

Easy to use IPC library

  • 0.3.2.post2
  • PyPI
  • Socket score

Maintainers
1

Easy to use IPC library

Sometimes there is no need for complicated blazingly fast connections with incredible throughput and even more incredible configuration. You just want made your processes communicate with each other. And that's what this library for.

Idea

There is two main entities: Client and Server, which uses Connectors to create Connections.

The only way client and server differs is who initiate a connection. After successful connect there is no difference between them, any side can make requests to other.

Entities

Pairs of Client and Server entities.

EntityDescription
SimpleThese entities have only one handler and two operations: request (send message, wait response, return it) and throw (send message and notify responder, that response can be dropped). They use Serializers to serialize request data.
RouteSimilar to simple, but have multiple handlers, identified by exact string match.

Connectors:

Things which making connections. Connector can be serialized and passed to other processes, e.g. parent process creates connector, run server with it and start childs, which run clients with same connector.

ConnectorDescription
LocalConnectorUses Named Pipes on Windows and Unix domain sockets on other systems, if available. This is similar to multiprocessing's connection, but LocalConnector doesn't fallback to TCP.
TcpConnectorUses TCP/IP protocol.
RmqConnectorUses AMQP message broker, can be scaled.

Extras

You can install additional dependencies for various features

pip install communica[extraname1, extraname2]

Extra nameFeature
orjsonFaster JSON library, recommended with CPython.
rabbitmqRmqConnector, which use AMQP server for communication.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc