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

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

Built distribution (wheel)

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

Total release size: 12.5 kB

Release files / bibb-0.1.3.tar.gz

Download URL bibb-0.1.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0fe43637838d0056b62311e0be6dd459a56e33121de29201bfa294eb1477672a
BLAKE2b-256 checksum
How to use checksums
470cc013cffc81016557140f76ae34163f4cab8b0d5a250d88292e9ec6070526
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.3-py3-none-any.whl

Download URL bibb-0.1.3-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a86e0c6705613c0b315437e3e1aabfc59519afb2a326065bb46aababfbfaa34
BLAKE2b-256 checksum
How to use checksums
605d3adfc3799c8aca49feb3f540a282d9a36730bf3ff7429a9cfbcec834808e
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

This release

0.1.3 This release

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