Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Build Status

A function composition framework that supports:

  1. State - functions which retain state for their next turn of action.
  2. Prioritized paths - lazily attempt overloaded composition paths according to priorities.
  3. Deep dependency injection - compose a function to a variadic function at the end of an arbitrarily long pipeline.
  4. Non cancerous asyncio support.

pip install computation-graph

To deploy: python setup.py sdist bdist_wheel; twine upload dist/*; rm -rf dist/;

Type checking

The runner will type check all outputs for nodes with return type annotations. In case of a wrong typing, it will log the node at fault.

Debugging

Computation trace

Available computation trace visualizers:

  1. graphviz.computation_trace
  2. mermaid.computation_trace
  3. ascii.computation_trace

To use, replace to_callable with run.to_callable_with_side_effect with your selected style as the first argument.

Graphviz debugger

This debugger will save a file on each graph execution to current working directory.

You can use this file in a graph viewer like gephi. Nodes colored red are part of the 'winning' computation path. Each of these nodes has the attributes 'result' and 'state'. 'result' is the output of the node, and 'state' is the new state of the node.

In gephi you can filter for the nodes participating in calculation of final result by filtering on result != null.

Download files

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

Source Distribution

computation-graph-39rc1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

computation_graph-39rc1-py3-none-any.whl (131.5 kB view details)

Uploaded Python 3

File details

Details for the file computation-graph-39rc1.tar.gz.

File metadata

  • Download URL: computation-graph-39rc1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for computation-graph-39rc1.tar.gz
Algorithm Hash digest
SHA256 823d8a28753fcd1867c06dcb412a6bab7b2193d3cebed1d10687d9d788c2cc76
MD5 d5aa8909465c6504047bd5bbaec481bc
BLAKE2b-256 af524b2883e78f6104655335e40c4187f6bae1d2de4cffb9db4d05c539581f14

See more details on using hashes here.

File details

Details for the file computation_graph-39rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for computation_graph-39rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 f42bc078a001d28d765a888e73fb1925cb27bc7de11f6455c5f3d7b9e3d537c3
MD5 d64abed4b853e68f89c16a7d902c7b15
BLAKE2b-256 0b9807dfd54528c3a9bd574078250fbdb760b6595150614072fac8c0ec2576fb

See more details on using hashes here.

Release history Release notifications | RSS feed

78

1 file

77

1 file

76

1 file

75

1 file

74

1 file

73

1 file

72

1 file

71

1 file

70

1 file

69

1 file

68

1 file

67

1 file

66

1 file

65

1 file

64

1 file

63

1 file

62

1 file

61

1 file

60

1 file

59

1 file

58

1 file

57

1 file

56

1 file

54

1 file

53

1 file

52

1 file

51

1 file

50

1 file

49

1 file

48

1 file

47

1 file

46

1 file

45

1 file

44

1 file

43

1 file

42

1 file

41

1 file

40

1 file

39

2 files

This release

39rc1 This release

2 files

38

1 file

37

1 file

36

1 file

35

1 file

34

1 file

33

1 file

32

1 file

31

1 file

30

1 file

29

1 file

28

1 file

27

1 file

26

1 file

25

1 file

24

1 file

23

1 file

22

1 file

21

1 file

20

1 file

19

1 file

18

1 file

17

1 file

16

1 file

15

1 file

14

1 file

13

1 file

12

1 file

11

1 file

10

1 file

9

1 file

7

1 file

6

1 file

5

1 file

4

1 file

3

1 file

2

2 files

1

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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