Package base classes¶
- class ReviewTypePackageBaseClass(*, operation, settings)[source]¶
Bases:
ABC
The base class for ReviewType packages
The following cli command calls the initialize method of a ReviewType package:
colrev init --type package_name
-> callspackage.initialize()
- class SearchSourcePackageBaseClass(*, source_operation, settings=None)[source]¶
Bases:
ABC
The base class for SearchSource packages
The following cli commands call specific methods of a SearchSource package:
colrev search --add package_name
-> callspackage.add_endpoint()
colrev search
-> callssearch
operation -> callspackage.search()
colrev load
-> callsload
operation -> callspackage.load()
colrev prep
-> callsprep
operation -> callspackage.prep()
- abstract classmethod add_endpoint(operation, params)[source]¶
Add the SearchSource as an endpoint.
- Return type:
- classmethod ensure_append_only(filename)[source]¶
Ensure that the SearchSource is append-only.
- Return type:
bool
- abstract classmethod heuristic(filename, data)[source]¶
Heuristic to identify which SearchSource a search file belongs to.
- Return type:
dict
- abstract classmethod load(*, filename, logger)[source]¶
Load records from the SearchSource.
- Return type:
dict
- class PrepPackageBaseClass(*, prep_operation, settings)[source]¶
Bases:
ABC
The base class for Prep packages.
The following cli command calls the prepare method of a Prep package:
colrev prep
-> callspackage.prepare()
- class PrepManPackageBaseClass(*, prep_man_operation, settings)[source]¶
Bases:
ABC
The base class for PrepMan packages.
The following cli command calls the prepare_manual method of a PrepMan package:
colrev prep-man
-> callspackage.prepare_manual()
- class DedupePackageBaseClass(*, dedupe_operation, settings)[source]¶
Bases:
ABC
The base class for Dedupe packages.
The following cli command calls the dedupe method of a Dedupe package:
colrev dedupe
-> callspackage.run_dedupe()
- class PrescreenPackageBaseClass(*, prescreen_operation, settings)[source]¶
Bases:
ABC
The base class for Prescreen packages.
The following cli command calls the run_prescreen method of a Prescreen package:
colrev prescreen
-> callspackage.run_prescreen()
- class PDFGetPackageBaseClass(*, pdf_get_operation, settings)[source]¶
Bases:
ABC
The base class for PDFGet packages.
The following cli command calls the pdf_get method of a PDFGet package:
colrev pdf-get
-> callspackage.get_pdf()
- class PDFGetManPackageBaseClass(*, pdf_get_man_operation, settings)[source]¶
Bases:
ABC
The base class for PDFGetMan packages.
The following cli command calls the pdf_get_man method of a PDFGetMan package:
colrev pdf-get-man
-> callspackage.pdf_get_man()
- class PDFPrepPackageBaseClass(*, pdf_prep_operation, settings)[source]¶
Bases:
ABC
The base class for PDFPrep packages.
The following cli command calls the prep_pdf method of a PDFPrep package:
colrev pdf-prep
-> callspackage.prep_pdf()
- class PDFPrepManPackageBaseClass(*, pdf_prep_man_operation, settings)[source]¶
Bases:
ABC
The base class for PDFPrepMan packages.
The following cli command calls the pdf_prep_man method of a PDFPrepMan package:
colrev pdf-prep-man
-> callspackage.pdf_prep_man()
- class ScreenPackageBaseClass(*, screen_operation, settings)[source]¶
Bases:
ABC
The base class for Screen packages.
The following cli command calls the run_screen method of a Screen package:
colrev screen
-> callspackage.run_screen()
- class DataPackageBaseClass(*, data_operation, settings)[source]¶
The base class for Data packages.
The following cli command calls the update_data method of a Data package:
colrev data
-> callspackage.update_data()
- abstract get_advice()[source]¶
Get advice on how to operate the data package endpoint.
- Return type:
dict