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
Release history Release notifications | RSS feed
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.1.tar.gz
(17.6 kB
view details)
Built Distribution
flowdag-0.1.1-py3-none-any.whl
(17.9 kB
view details)
File details
Details for the file flowdag-0.1.1.tar.gz
.
File metadata
- Download URL: flowdag-0.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 050f6726160fc80086866ef114bae9fff673febff028065c9bc0e59a901f944c |
|
MD5 | 25960a91b8cc85110b7fe1443177bba9 |
|
BLAKE2b-256 | 91f3d5e221d5af5af659990d50cf2df1578106af841e3458ca46f46f9c901612 |
File details
Details for the file flowdag-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: flowdag-0.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d8aa7d876c579307f9f2e67c0455e1a37775419ed7155af0911e892f8f4ee70 |
|
MD5 | b32b7854c82afcb68b35739d0b6f2b40 |
|
BLAKE2b-256 | 3ac32355ad7a524ec25463f01c28c67dbf6f30fbb956a4ba43a43dd303e842da |