Skip to content

bib.bibtexparser.middlewares.block.month_year

Classes

ConvertStrMonthToInt

ConvertStrMonthToInt(allow_inplace_modification=True)

Bases: BlockMiddleware

Convert the field month value of an entry when it is str to int type if possible.

Source code in pybibtexer/bib/bibtexparser/middlewares/block/month_year.py
def __init__(self, allow_inplace_modification: bool = True):
    super().__init__(allow_inplace_modification=allow_inplace_modification, allow_parallel_execution=True)

ExtractYear

ExtractYear(allow_inplace_modification=True)

Bases: BlockMiddleware

Convert the field month value of an entry when it is str to int type if possible.

Source code in pybibtexer/bib/bibtexparser/middlewares/block/month_year.py
def __init__(self, allow_inplace_modification: bool = True):
    super().__init__(allow_inplace_modification=allow_inplace_modification, allow_parallel_execution=True)