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

Uploaded Source

Built Distribution

pipekit-0.1.3-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pipekit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 eb6d0dd0a24904189187853777d6f11ad419908b7fab06c54da5148e6eb0ec12
MD5 4327c69832908c7f79ef6a777c14e68a
BLAKE2b-256 4f33d67ce531492230ad96372566f555547cdfeaf54d178a64147e1e7c018c82

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pipekit-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 918ccdaeb0256cbe780ca5bd00005cbd73909796619f5918378210a7fc43ae7e
MD5 c0de62a8a8c59c5b9e52b265eb7c4ef3
BLAKE2b-256 7b074b5f03264561c78c3616448d2adcc7fdf61e44c1e731537b6d33617a145f

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