Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple provenance capture

This module is designed to do simple provenance logging in JSONL.

The simplest way to use it is with the Step context manager, as in this overly simple example:

import random

from provenance.capture import Step

with Step() as step:
    step.add_input('input1', 'input1_id', 'input1_description')
    step.add_output('output1', 'output1_id', 'output1_description')
    step.add_parameter('param1', 'param1_value')
    if random.random() < 0.5:
        raise ValueError('Random failure')

The result will be to print a one-line JSON record describing the run (or failure, if it randomly fails).

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages