Skip to main content

Branch and Confluence. You can have consecutive another process.

Project description

This library is Branch and Confluence. You can have consecutive another process.

timeline >-------------------------------->

main process o---o---o---o---o---o---o---o---o
                  \       \           \
sub process        o-------o-----------o

Requirements

  • Python3

Quick Example

import bracon

b = bracon.Bracon()
b.add(lambda x: "Hello")
b.add(lambda x: x * 2)
b.add(lambda x: print("print from sub process", x))
print("print from main process")

When you run this script, you will get:

print from main process
print from sub process HelloHello

But if you copy and paste on your python shell one by one, you will get:

print from sub process HelloHello
print from main process

Sometime main is called fist, sometime sub is called first. That’s why BraCon runs on another process.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bracon-0.0.1.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page