Skip to main content

Tools for flow-based programming

Project description

Pipekit

Pipekit is a flow-based programming toolkit, with a control layer.

Quick start

Pipekit connects message processors using pipes. Pipes are just a thin layer on top of Queue objects and 0mq sockets, wrapping them under a common API. The basic idea behind this abstraction is the possibility to transparently replace a pipe implementation with another one, with no code change needed in the producers/consumers.

Pipes simply have an input and an output channel; creating and using them is pretty straightforward:

from pipekit import ThreadPipe

# Pipes need to be given a name
mypipe = ThreadPipe('my-pipe')
mypipe.send('Hello world')

print(mypipe.receive())
# Hello world

Pipes are iterables, too:

for msg in mypipe:
    dosomething(msg)

Need a 0mq-based pipe instead?

from pipekit import ZMQPipe

my0mqpipe = ZMQPipe('my-0mq-pipe', address='tcp://*:5555')

Alternatively:

from pipekit import Pipe

my0mqpipe = Pipe('my-0mq-pipe', impl='zmq', address='tcp://*:5555')
print(my0mqpipe)
# <pipekit.ZMQPipe object at 0x7fe...>

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

pipekit-0.1.10.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

pipekit-0.1.10-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file pipekit-0.1.10.tar.gz.

File metadata

  • Download URL: pipekit-0.1.10.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for pipekit-0.1.10.tar.gz
Algorithm Hash digest
SHA256 7ecdb08ff017aeab7e86fec310da1c3f2c0d398ec6d6dde89b4f53892e660ea4
MD5 1b9145d3215141fff6d8fd0576e0d268
BLAKE2b-256 7d814a7081a4fb52299122c088a6e16ebe089f7d14988e3675038e8d67217b8d

See more details on using hashes here.

File details

Details for the file pipekit-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: pipekit-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for pipekit-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 608c20979d6822d59074c7721b4ede11dcadc706f291728a53fcf9f855c34aac
MD5 3e86db1e19b3b16865f8cdb731f1d899
BLAKE2b-256 4cd1cc1235c37a29a3958aaaa72005edf2dd46dc3797f5a4e0ef6c46f9cb94ef

See more details on using hashes here.

Supported by

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