mass_driver.sources.simple
A dummy source, returning the list of objects it was given
Module Contents
Classes
| A Source that just returns a pre-configured list of repositories | |
| A Source reads repo list from file | |
| A Source that reads repo id from file, templating the clone URL around it | |
| 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 
 
- 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 
 
- 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} 
 
- 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