bibump
Checks every entry in a .bib file against its upstream provider (INSPIRE-HEP
and Zenodo) and reports whether an update is available, e.g.:
- an INSPIRE-HEP preprint that has since been accepted/published in a journal (or has grown an erratum), or
- a Zenodo record for which a newer version has been released (typically
changing the
version/title/doifields).
Table of Contents
Installation
pip install bibump
License
bibump is distributed under the terms of the MIT license.
Usage
$ bibump references.bib
For every entry with an update available, prints a colored diff against what each provider offers, then asks which version to keep:
[zenodo] lukas_heinrich_2026_21360926
option 1: -> lukas_heinrich_2026_23082467 (doi, month, title, url, version)
- title = scikit-hep/pylhe: v2.0.0
+ title = scikit-hep/pylhe: v2.1.0
...
[0] keep original
[1] use option 1
Pick [0-1] (default 0, keep original):
0 always keeps the entry exactly as it was; 1, 2, ... apply one of the
suggested updates (a provider can offer more than one candidate, e.g. an
ambiguous INSPIRE-HEP search or a Zenodo free-text search). Once you've gone
through every entry, the file is rewritten in place (a .bak backup is kept
alongside it first).
Other flags:
-y,--yes— don't prompt, apply the first suggested update for every entry automatically.-n,--dry-run— don't prompt or write anything, just print the diffs.-v,--verbose— also list entries that are already up to date, or for which no provider could be determined.--no-backup— don't write a.bakfile when changes are written.--no-color— disable colored output.-i,--ignore FIELD— ignore a field when comparing entries (repeatable, or comma-separated:--ignore keywords,note). Handy for fields you set by hand, likekeywords, that providers don't know about.
If stdin isn't a terminal (e.g. piped input or CI), bibump automatically
falls back to --dry-run instead of hanging on a prompt.
Reading from stdin
The bibfile argument can be omitted, in which case bibump reads the
.bib content from stdin and writes the (possibly updated) result to
stdout, so it can be used as a filter:
$ cat references.bib | bibump -y > references.bib.new
All diffs and status messages are written to stderr in this mode, keeping
stdout clean for the BibTeX output. Since stdin is already consumed by the
input itself, this mode always runs non-interactively (same fallback as
above): pass -y to apply updates, or leave it as a dry-run check.
Metadata
Release files for bibump 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bibump-0.0.1.tar.gz | 5.8 kB | Without provenance | Details for bibump-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bibump-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for bibump-0.0.1-py3-none-any.whl |
Total release size: 12.7 kB
Release files / bibump-0.0.1.tar.gz
| Download URL | bibump-0.0.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
746164cadbd44014f4fbd4e07a747ad2845f35a9badb3e59dfcd7cb56ed0aead
|
|
BLAKE2b-256 checksum How to use checksums |
b027c60cd939e61726b30ddb073a0627925e929ed039e210d4ba72bd0e0dd5c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Release files / bibump-0.0.1-py3-none-any.whl
| Download URL | bibump-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c22101725e2d81e5d039828058e0a71131192968b344a380f9b3049edf15e261
|
|
BLAKE2b-256 checksum How to use checksums |
da56bc407a5c1cd8f8054f7013d9c107c671d4c37d24f8914f56b2935d48730d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Security for bibump 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.