Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pierre-24/pybibtex
Provides a Python API to parse BibTeX files
https://github.com/pierre-24/pybibtex
bibtex latex parser python
Last synced: about 1 month ago
JSON representation
Provides a Python API to parse BibTeX files
- Host: GitHub
- URL: https://github.com/pierre-24/pybibtex
- Owner: pierre-24
- License: mit
- Created: 2021-08-03T10:58:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-18T12:33:45.000Z (almost 2 years ago)
- Last Synced: 2024-11-10T14:20:07.470Z (3 months ago)
- Topics: bibtex, latex, parser, python
- Language: Python
- Homepage:
- Size: 831 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# `pybibtex`: a (very) simple BibTeX parser
Provides a Python API to parse BibTeX files.
Not to be confused with the (actual) [`pybibtex`](https://github.com/rasbt/pybibtex), which uses REGEX, while this implementation use an actual LL(1) parser (less error-prone, normally).The BiBTeX syntax is introduced, simply, [there](https://www.bibtex.com/g/bibtex-format/).
More details are found in [`btxdoc`](https://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/) (and some of its quirks are examplified [here](http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html)).
This implementation handles the different syntax for the items (braces or parentheses), the comments, and the concatenation (with the `@string` definitions).
It does not handle `@preamble`.## Install & use
```bash
pip3 install --upgrade git+https://github.com/pierre-24/[email protected]
```No dependencies are required (except python >= 3.6).
See the documentation [there](https://pierre-24.github.io/pybibtex/usage/) demonstrating the (quite simple) API.
## Contribute
Contributions, either with [issues](https://github.com/pierre-24/pybibtex/issues) or [pull requests](https://github.com/pierre-24/pybibtex/pulls) are welcomed.
See the [Contributing section](https://pierre-24.github.io/pybibtex/contributing/) of the documentation for more details.