bibble.io.reader

Type Aliases

Logger

Classes

BibbleReader

A Refactored bibtexparser reader

Module Contents

bibble.io.reader.Logger: TypeAlias = logmod.Logger
class bibble.io.reader.BibbleReader(
stack,
*,
lib_base=None,
logger=None,
)[source]

A Refactored bibtexparser reader

Parameters:
  • stack (bibble.util.PairStack | list[Middleware])

  • lib_base (jgdv.Maybe[type])

  • logger (jgdv.Maybe[Logger])

_map_keys(
final_lib,
source,
entry_keys,
) <Unknown>[source]

Map source -> keys

Parameters:
Return type:

bibtexparser.library.Library

_read_into(lib, source) <Unknown>[source]
Parameters:
  • lib (bibtexparser.library.Library)

  • source (str)

Return type:

bibtexparser.library.Library

read(
source,
*,
into=None,
append=None,
) <Unknown>[source]

read source and make a new library. if given ‘into’ lib, add the newly read entries into that libray as well

Parameters:
  • source (str | pathlib.Path)

  • into (jgdv.Maybe[bibtexparser.library.Library])

  • append (jgdv.Maybe[list[Middleware]])

Return type:

jgdv.Maybe[bibtexparser.library.Library]

read_dir(
source,
*,
ext,
into=None,
append=None,
) <Unknown>[source]
Parameters:
  • source (pathlib.Path)

  • ext (str)

  • into (jgdv.Maybe[bibtexparser.library.Library])

  • append (jgdv.Maybe[list[Middleware]])

Return type:

jgdv.Maybe[bibtexparser.library.Library]

_lib_class: type[bibtexparser.library.Library]
_logger
_middlewares: list[Middleware]