runtraj.execution.inputs.pull#

runtraj.execution.inputs.pull(url, directory)[source]#

Copy a project’s inputs from url into directory, the reverse of push().

A releases.csv is not required: a project run every hour has none until its first hour is added. sites.csv is copied when present.

Parameters:
  • url (str) – Where the inputs are, such as s3://bucket/projects/my_project.

  • directory (str | Path) – The folder to copy them into, made if needed.

Returns:

directory, now a project folder.

Return type:

Path

Raises:
  • FileNotFoundError – If url has no config.yaml.

  • OSError – If url cannot be read, such as a refused connection, a timeout or expired credentials: unlike a missing project, a retry may get past it.