biblib | Simple , faithful BibTeX parser and algorithms for Python | Parser library
kandi X-RAY | biblib Summary
kandi X-RAY | biblib Summary
Biblib provides a simple, standalone Python3 package for parsing BibTeX bibliographic databases, as well as algorithms for manipulating BibTeX entries in BibTeX-y ways. There are a lot of BibTeX parsers out there. Most of them are complete nonsense based on some imaginary grammar made up by the module's author that is almost, but not quite, entirely unlike BibTeX's actual grammar. BibTeX has a grammar. It's even pretty simple, though it's probably not what you think it is. The hardest part of BibTeX's grammar is that it's only written down in one place: the BibTeX source code. Biblib's parser is derived directly from the WEB source code for BibTeX and hence (barring bugs in translation) should be fully compatible with BibTeX's own parser.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse a string
- Return the first character in the string
- Splits the data into parts
- Calculates the depth of the data
- Log a warning
- Splits the head of von and last
- Raise an error
- Process a string
- Expand the cs
- Expand the character
- Scans the character at the given position
- Return a list of the authors of the given field
- Parse a list of names
biblib Key Features
biblib Examples and Code Snippets
Community Discussions
Trending Discussions on biblib
QUESTION
I have a bibtex file that I get from the frontend and I'm trying to parse this file with biblib (a python library to parse bibtex files). Because I get the file from the frontend its not stored in a file on my computer. The file gets passed through a variable from the frontend to python and is then stored in the python variable fileFromFrontend. So I can use for example:
bibtexFile = fileFromFrontend.read()
to read the file.
now I'm trying to do something like the following to print the parsed file in the python terminal:
...ANSWER
Answered 2020-Apr-27 at 14:56According to documentation ( https://docs.pybtex.org/api/parsing.html ) there is methods
parse_string
and parse_bytes
which could work.
so like this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install biblib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page