adsfolio.cv.config
Configuration loading for adsfolio cv.
- class adsfolio.cv.config.CVConfig(query, orcid, use_orcid, debut_year, retire_year, exclude_bibstems, first_author_prefix, me_target, me_display, output_format, style, n_max_authors, n_min_authors, n_me, author_sep, me_fmt, author_format, markers, status, output_dir, output_filename, journal_legend, latex_list_env, latex_left_margin, latex_item_sep, template=<factory>)[source]
Bases:
objectImmutable runtime config for CV generation.
- Parameters:
query (str)
orcid (str)
use_orcid (bool)
debut_year (int | None)
retire_year (int | None)
first_author_prefix (str)
me_target (str)
me_display (str)
output_format (Literal['latex', 'markdown', 'template'])
style (str)
n_max_authors (int)
n_min_authors (int)
n_me (int)
author_sep (str)
me_fmt (str)
author_format (str)
markers (dict[str, adsfolio.cv.config.MarkerConfig])
output_dir (pathlib.Path)
output_filename (str)
journal_legend (bool)
latex_list_env (str)
latex_left_margin (str)
latex_item_sep (str)
template (adsfolio.cv.template.CVTemplate)
- markers: dict[str, adsfolio.cv.config.MarkerConfig]
- output_dir: pathlib.Path
- output_format: Literal['latex', 'markdown', 'template']
- property output_path: pathlib.Path[source]
Path where generated output is written.
- template: adsfolio.cv.template.CVTemplate
- class adsfolio.cv.config.MarkerConfig(symbol, description, bibcodes)[source]
Bases:
objectMarker configuration for a bibcode category.
- adsfolio.cv.config.build_query(cfg)[source]
Combine base query and bibstem exclusions into one Solr query.
- Parameters:
- Return type:
- adsfolio.cv.config.config_from_mapping(raw, config_path)[source]
Validate a parsed
cv.yamlmapping and build a CVConfig.- Parameters:
raw (dict) – The YAML content as a mapping.
config_path (Path) – The YAML location. Relative
output.dirvalues resolve against its folder.
- Raises:
ValueError – If a field has an invalid value or
author.queryis empty.- Return type:
- adsfolio.cv.config.load_config(path)[source]
Load
cv.yamlfrom disk.- Parameters:
path (pathlib.Path)
- Return type: