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

Uploaded Source

Built Distribution

pipekit-0.1.5-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipekit-0.1.5.tar.gz
  • Upload date:
  • Size: 14.6 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.5.tar.gz
Algorithm Hash digest
SHA256 0d9e6ab9561ba9e328effe186e64bd47c86a832709640b11d072d4c03966f2ee
MD5 73dd409f0b6a1d068f5259054ea4b3e5
BLAKE2b-256 36cd49f163726e867035208c8bbddab6f2986b89f81aaf0fd26289ebebb69309

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pipekit-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dbbfede7e39a3ebf32e01526d9afea45d299fbece213beb9f1d756dea5cf4e26
MD5 4f0a988e61a24b15faafee8c27846b47
BLAKE2b-256 96f8e7b87f39bee7bde98166e0f10134762081ce325e1d2f0e8015fe509adc5f

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