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

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.1
File Size Uploaded
bibb-0.1.1.tar.gz 6.0 kB Details

Built distribution (wheel)

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

Total release size: 12.4 kB

Release files / bibb-0.1.1.tar.gz

Download URL bibb-0.1.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ceef7d4b3ce7a44c22702f5a0456d8f9e29f523fd790e52fd0c00b7efd2dd77b
BLAKE2b-256 checksum
How to use checksums
7f7d9732ae14ca3df32fbdf653f91284b8d756bec1e2823b832432c84a287aaa
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.1-py3-none-any.whl

Download URL bibb-0.1.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68a43f86327d520c694ff045d11cdd857c5e073c83b5f0dafd52ed954502d197
BLAKE2b-256 checksum
How to use checksums
588768775d1aeca30f750a263a36fd50e34936ca6613e23f3128c428720343b1
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

0.1.2

2 release files

This release

0.1.1 This release

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