Skip to main content

BibTeX beautifier.

Project description

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.

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

bibb-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bibb-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file bibb-0.1.0.tar.gz.

File metadata

  • Download URL: bibb-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bibb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3060c48d6f57a3b5c641507db16f5727b4558cccba5451d1dc3aa1983cbff021
MD5 0548c09ea2b23aa886bc6cc6df0e3d8a
BLAKE2b-256 3ef033223d5da04787cc4960115d8e61dd007d0ee70384e96e21ffc5d84ce840

See more details on using hashes here.

File details

Details for the file bibb-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bibb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bibb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e31faac9b1769dd83a75723281e13d8258bbd573539d611f9082d9bd24fbd98
MD5 1442f616c05a5961ae2d90ce06c63822
BLAKE2b-256 45f6c7147b8c62ec6b0b82fefcb864a907eb38f2f98ec433e9645294345d090e

See more details on using hashes here.

Supported by

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