Skip to main content

ConnectMP - Taking Multi-Process Data Sharing to the moon 🚀

Contribute · Community · Documentation


🎫 Introduction :

🍤 ConnectMP is an simple, easy way to share data between Processes using DB. It's superfast, can handle big datas, can create multiple data connection and really simple to get started. 🍰

🥐 ConnectMP is created out of pure Frustration of not being able to find a good solution to comminucate between Processes 🥨

🥗 Installation :

via pip (recommended) :

pip install connectmp

🧇 Quickstart : (Docs)

🥨 connectmp.Connection

Let's see how to create a connection Object.

First, import this:

from connectmp import Connection

You can create your own Connection with this. Let me show you how:

from connectmp import Connection

connection = Connection()

that's it! 🎉 You can also create multiple Connection like this! pass it as an argument and use it anywhere you want 🥂

Here's an example below:

🌮 Example:

import time
from connectmp import Process, Connection


def do_something(connection):
    connection.data = "Sending Some Data."


def track_data(connection):
    time.sleep(1)
    print(f"Track i: {connection.data}")


if __name__ == '__main__':
    conn = Connection()  # Creating connection
    
    p1 = Process(target=do_something, args=(conn,))
    p2 = Process(target=track_data, args=(conn,))

    p1.start()
    p2.start()

Here we created a Connection object named conn, and we created 2 Process. Both of then share the same Connection object so they can communicate with each other. In our do_something function we send the data and in track-data function we get the data and print it out.

That's all you needed to know about ConnectMP. Hope this helped you 🎉

🌟 Back to Top

Metadata

Release files for connectmp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for connectmp 1.1.0
File Size Uploaded Provenance Actions
connectmp-1.1.0.tar.gz 7.7 kB Without provenance Details for connectmp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for connectmp 1.1.0
File Interpreter ABI Platform Actions
connectmp-1.1.0-py3-none-any.whl Python 3 none any Details for connectmp-1.1.0-py3-none-any.whl

Total release size: 15.8 kB

Release files / connectmp-1.1.0.tar.gz

Download URL connectmp-1.1.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
39d6e4c3b53652db41961568c58f5bd9fcbf284bea587a6ced80dc2d27031d8a
BLAKE2b-256 checksum
How to use checksums
f515beee14028e3d94f53b3bcd7cda81311c81f0073dbe9761ff016da0c52a12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / connectmp-1.1.0-py3-none-any.whl

Download URL connectmp-1.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a81dcc9e5e0d3656966dd445d37666a9561ef2a94df7c77a7e74e41573457c9d
BLAKE2b-256 checksum
How to use checksums
d1f421b733a6968ffac925e7315da4b51e440702d0a9d3f4b4d8686c478c3e4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Security for connectmp 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page