mass_driver.sources.simple

A dummy source, returning the list of objects it was given

Module Contents

Classes

RepolistSource

A Source that just returns a pre-configured list of repositories

RepoFilelistSource

A Source reads repo list from file

TemplateFileSource

A Source that reads repo id from file, templating the clone URL around it

CSVFileSource

Source reading repos from CSV file, attaching to patch_data any extra fields

API

class mass_driver.sources.simple.RepolistSource[source]

Bases: mass_driver.models.repository.Source

A Source that just returns a pre-configured list of repositories

repos: list[mass_driver.models.repository.RepoUrl] = None

The configured list of repositories to use, as list of cloneable URL

discover() mass_driver.models.repository.IndexedRepos[source]

Discover a list of repositories

class mass_driver.sources.simple.RepoFilelistSource[source]

Bases: mass_driver.models.repository.Source

A Source reads repo list from file

repo_file: pydantic.FilePath = None

The path to the file that holds repos to read

discover() mass_driver.models.repository.IndexedRepos[source]

Discover a list of repositories

class mass_driver.sources.simple.TemplateFileSource[source]

Bases: mass_driver.models.repository.Source

A Source that reads repo id from file, templating the clone URL around it

repo_file: pydantic.FilePath = None

The path to the newline-delimited file that holds repo ids

clone_url_template: str = None

The repo clone URL template string, ready to inject ID into. Must contain {id}

discover() mass_driver.models.repository.IndexedRepos[source]

Discover a list of repositories

class mass_driver.sources.simple.CSVFileSource[source]

Bases: mass_driver.models.repository.Source

Source reading repos from CSV file, attaching to patch_data any extra fields

csv_file: pydantic.FilePath = None

The path to the CSV file that holds repos

reader_args: dict = None

Keyword-arguments to pass to csv.DictReader

discover() mass_driver.models.repository.IndexedRepos[source]

Discover a list of repositories