Skip to main content

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.

Download files

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

Source Distribution

bracon-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file bracon-0.0.1.tar.gz.

File metadata

  • Download URL: bracon-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bracon-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ac7ac0c840670fa957c374a5a077616190c0e71d9fdb5c85b4d07a76871126be
MD5 b1c0a64c2aa97b64b3eef81fe0017cfa
BLAKE2b-256 fd0fc3f9a7ea32956aaa2fbbad32dbd01959a6fec34775131df6803c1164c171

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

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