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.4

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.4
File Size Uploaded
bibb-0.1.4.tar.gz 6.1 kB Details

Built distribution (wheel)

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

Total release size: 12.5 kB

Release files / bibb-0.1.4.tar.gz

Download URL bibb-0.1.4.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4e08d2e77a52610470462a2b0a3f70d606050b18d8b53da52d5e2dd06f7809c1
BLAKE2b-256 checksum
How to use checksums
322aae9b6e8e3d6e870d4c2e2c3c22c59eb9e9e071cf1ce37d4bee3edf92139e
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.4-py3-none-any.whl

Download URL bibb-0.1.4-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f47aa0c481373e61a0f789f6ce6b6ffc124b659fb7433bd1cdb81fb50fe92cd0
BLAKE2b-256 checksum
How to use checksums
a3e7e0c8d13a3c7a267ab231d85e86410bfabe0ed076db722d6c50cf8021076b
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

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

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