pull_module()ยถ

hamilton.dataflows.pull_module(dataflow: str, user: str = None, version: str = 'latest', overwrite: bool = False)[source]ยถ

Pulls a dataflow module.

Saves to hamilton.dataflow.USER_PATH. An import should just work right after doing this.

It performs the following:

  1. Creates a URL to pull from github.

  2. Pulls the code for the dataflow.

  3. Save to the local location based on hamilton.dataflow.USER_PATH.

Parameters:
  • dataflow โ€“ the dataflow name.

  • user โ€“ the userโ€™s github handle.

  • version โ€“ the commit version. โ€œlatestโ€ will resolve to the most recent commit, else pass a commit SHA.

  • overwrite โ€“ whether to overwrite. Default is False.