dbnd.log_artifact

dbnd.log_artifact(key, artifact)

Log a local file or directory as an artifact of the currently active run.

Parameters
  • key – The key by which to log the artifact

  • artifact – The artifact to log

Example:

def prepare_data(data):
    lorem = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt"
    data.write(lorem)
    log_artifact("my_tmp_file", str(data))