A command-line tool for improving the integrity of BibTeX bibliographies
Project description
bib-ami: A Bibliography Integrity Manager
bib-ami is a smart command-line tool for cleaning, enriching, and managing the quality of your BibTeX bibliographies. It automates a rigorous data integrity workflow by consolidating .bib files, validating every entry against external APIs like CrossRef, and deduplicating records with confidence.
The tool intelligently scores the quality of each reference and triages them based on your own configurable rules, enabling researchers to build a clean, reliable, and auditable bibliography for their LaTeX, Zotero, or other reference management workflows.
Key Features
- Merge & Consolidate: Combines multiple
.bibfiles from a directory into a single source. - Validate & Enrich: Validates entries against CrossRef to find canonical DOIs, and automatically enriches records with missing data like full author lists, publication years, and ISBNs.
- Active DOI Resolution: Goes beyond just finding a DOI;
bib-amiverifies that every DOI is active and resolvable viadoi.org, protecting against stale or invalid identifiers. - Intelligent Deduplication: Uses verified DOIs as the primary key for accurate deduplication, with a fuzzy-matching fallback for entries without a DOI.
- Configurable Quality Gating: Define your own standards for a "publishable" reference using a simple configuration file. Set quality thresholds (e.g., "Verified", "Confirmed") to automatically triage your entire library.
- Centralized Configuration: Use the
bib-ami config setcommand to easily manage your default settings, like your email and quality rules, without ever touching a JSON file. - Detailed Audit Trail: Provides transparent reporting on every action taken, with quality scores and changes noted directly in the output
.bibfiles as comments.
Getting Started
1. Installation
Ensure you have Python 3.7+ installed. You can install bib-ami using pip:
pip install bib-ami
2. Quick Start
To process a directory of .bib files, run the following command. You must provide an email address for responsible use of the CrossRef API.
bib-ami --input-dir path/to/your/bibs --output-file cleaned.bib --email "your.email@example.com"
This will produce two files:
cleaned.bib: Contains the entries that meet your quality standards.cleaned.suspect.bib: Contains entries that could not be verified and require manual review. This file is created automatically using a default name based on your main output file.
Configuration
bib-ami is highly configurable. You can set personal defaults for your email and quality filtering rules so you don't have to type them every time. The easiest way to do this is with the config command:
bib-ami config set email "your.email@example.com"
bib-ami config set triage_rules.min_quality_for_final_bib "Verified"
For a complete guide on all commands, configuration file locations, and available settings, please see the full Usage & Configuration documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bib_ami-0.15.0.tar.gz.
File metadata
- Download URL: bib_ami-0.15.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99698b37e4628cf37ef167af5224f08616978f28ca680a8d49e2d10472556c0a
|
|
| MD5 |
f5e9b67ffeb94c7517b6872a235c2a6b
|
|
| BLAKE2b-256 |
4276663da415a09c3788147985d24bcdef34209f11cc4a617a516b037fdf66de
|
File details
Details for the file bib_ami-0.15.0-py3-none-any.whl.
File metadata
- Download URL: bib_ami-0.15.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e172e69c60004e12a8439501ed3c233f89fccc0d34783f4e04ab3bbcb12e34
|
|
| MD5 |
68ae2ac49e40820de05d672ac03b2273
|
|
| BLAKE2b-256 |
80cb18575f4edcdf6db169346b3840387812deeaafe41f573367a6ec06223c4c
|