Skip to main content

A library for processing and visualizing data

Project description

flow

Flow is a python library that provides an alternative to create classes.

Key Features:

  • Define functions and their dependencies.
  • Automatically compute values based on dependencies.
  • Cache results to avoid redundant calculations.
  • Visualize the computation graph.
  • Provides an inheritance mechanism

Example Usage:

from flow import flow, gui

# Define some functions
def a():
    return 2

def b():
    return 3

def add(a, b):
    return a + b

def multiply(a, b):
    return a * b

# Create a flow with these functions
# it creates a dependency graph from the name of the arguments
f = flow(
    a=a, b=b
    add=add, multiply=multiply
)



# f is an object
f.a # 2
f.b # 3
f.add # 5
f.multiply # 6

# f works as a function with cached values
f(b=7).add # 9 does not recompute a

# in a notebook the object will display the dependency graph
f # displays dependency graph

# display buttons that evaluate each node
gui(f)

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

flowdag-0.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

flowdag-0.1.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file flowdag-0.1.0.tar.gz.

File metadata

  • Download URL: flowdag-0.1.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for flowdag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d71ac62daa7ad68d519c0d2b968defe99e2e178a62dfde5d775e306a5898ccca
MD5 ef6285fb6db62473d55e4589ca62fd1c
BLAKE2b-256 35448d94771b44b0faee4025942079705c1307399424fe5517ce84830e38e352

See more details on using hashes here.

File details

Details for the file flowdag-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: flowdag-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for flowdag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf65324afa8111f4b4bb4303003e6c2f8af1597dc15bcfebf3bdb4be24bac415
MD5 ee95364e7f544bad41dcec28986d3bde
BLAKE2b-256 1f293e0dfdb1508cf4f17e3bf234d40fdee0539e9f728e00d040b675a2cbd567

See more details on using hashes here.

Supported by

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