Skip to main content

PyPI Version Downloads

BibTeX beautifier

Beautify BibTeX files in the following way:

  • main feature: replaces entries using the ones from the ACM Digital Library (ACM DL) when they exist, otherwise keeps the original entry. It uses the entry DOI when it is available, otherwise it searches for the DOI using CrossRef API.
  • removes the fields specified by the user from the entries.
  • indents the entries in a consistent way.
  • removes unnecessary line breaks between the entries.

It preserves the original order of the entries in the BibTeX file and it also preserves the original BibTeX key of the entries.

Installation

pip install bibb

You also need to have Google Chrome and node.js installed and available in your PATH.

In Node.js, you need to install the citeproc package:

npm install citeproc

Usage

In order to use the ACM DL feature, you need to have Google Chrome installed, and you need to start it with the remote debugging port enabled. You can do this by running the following command in a terminal (replace with the path to your Google Chrome installation if it is different):

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 -user-data-dir="./ChromeProfile"

Navigate to the https://dl.acm.org/ website in the Chrome window that opens (allows to validate the Cloudflare protection), and then you can run the bibb command in another terminal.

bibb -i input.bib -o output.bib

To remove specific fields from the output BibTeX entries, you can use the --fieldsToRemove option followed by a comma-separated list of fields to remove. For example, to remove the keywords and abstract fields, you can run:

bibb -i input.bib -o output.bib --fieldsToRemove keywords,abstract

Important: This tool is still under development. Run a diff between the input and output files to check for any unexpected changes.

Metadata

Release files for bibb 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bibb 0.1.2
File Size Uploaded
bibb-0.1.2.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bibb 0.1.2
File Interpreter ABI Platform
bibb-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / bibb-0.1.2.tar.gz

Download URL bibb-0.1.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
18668be6b72fcf21f671b8200e18419912e9de17bc5ac3e96ba2142b477b247b
BLAKE2b-256 checksum
How to use checksums
3927e133abc22eaea636fd46f05dcee0727b4acd6b4d43250ab4bab52e9d585c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / bibb-0.1.2-py3-none-any.whl

Download URL bibb-0.1.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d0e435fd67ed725e4b0c26431d34ddca12239c8af086ddbff2b928b3a21cc57
BLAKE2b-256 checksum
How to use checksums
ae00fc4ce69e44e2229c0de944e5a1531077a329e929a38e04e9e835c9f5d169
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page