floatcsep.accessors.from_git

floatcsep.accessors.from_git(url, path, branch=None, depth=1, **kwargs)[source]

Clones a shallow repository from a git url

Parameters:
  • url (str) – url of the repository

  • path (str) – path/folder where to clone the repo

  • branch (str) – repository’s branch to clone (default: main)

  • depth (int) – depth history of commits

  • **kwargs – keyword args passed to Repo.clone_from

Returns:

the pygit repository