Skip to main content

Python bibtex parser and serializer.

Project description

bibtexpy

A simple library with full support for bibtex.

Grammar

We support the following grammar for bibtex:

Railroad

In summary we support:

  • enclosing blocks with curlies or brackets.
  • quoted and curlied strings, inner curlies are left to be processed by LaTeX.
  • concatenation between numbers, macros, and strings.
  • quote scaping inside quoted strings.
  • comment, string and preamble blocks.

We don't support savage things like:

  • Implicit comments.
  • Operations with undefined macros.
  • Circular references on macros.

As a couple of notes:

  • comment and preamble blocks are ignored from the get go.
  • preamble blocks may only contain a valid string concatenation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bibtexpy-0.0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

bibtexpy-0.0.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page