Skip to content

Bring back .get_entry_dict() functionality #629

Description

@SlowMo24

Is your feature request related to a problem? Please describe.

In V1 we had the following workflow:

  1. Convert a file to dict
  2. use pydantic to convert the dict to our custom types

I cannot fine a clear get_entry_dict() replacement.

Describe the solution you'd like

Convert a .bib file to a dict object.

Use cases

The library seemingly aims at providing the information of a .bib-file to the python program but our use-case is to simply forward the information in a different format.

Describe alternatives you've considered

Workaround code:

    for entry_key, entry_val in library.entries_dict.items():
        entry = dict()
        for field_key, field_val in entry_val.items():
            entry[field_key] = field_val
        entries_dict[entry_key] = entry

Remaining Questions (Optional)
Please tick all that apply:

  • I would be willing to contribute a PR to fix this issue.
  • This issue is a blocker, I'd be grateful for an early fix.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions