tidybib
A BibTeX formatter, written in Python
The tidybib command takes BibTeX input files and reformats their contents.
There is no configuration; everyone gets the same boring output.
Installation
Install tidybib with pip:
pip install tidybib
Alternatively, you can run tidybib using pipx
without installation:
pipx run tidybib
Usage
Run tidybib on BibTex files main.bib and aux.bib:
tidybib main.bib aux.bib
After the command has run, the contents of main.bib and aux.bib have been
reformatted in place. Copies of the original files are kept under
main.bib.untidy and aux.bib.untidy -- these will be overwritten the next
time tidybib runs on changed input files.
You can also run tidybib on standard input:
cat main.bib aux.bib | tidybib
This will produce the formatted contents on standard output, and no files are changed.
Pre-commit hook
This repository contains a pre-commit hook to
automatically run tidybib when committing BibTeX files with git. To use the
hook, add this to the repos list in your .pre-commit-config.yaml file:
- repo: https://github.com/ntessore/tidybib
rev: v0.1.3
hooks:
- id: tidybib
Acknowledgements
All of the hard work of extracting a grammar and parser from the BibTeX source code was done by aclements/biblib.
Metadata
Release files for tidybib 0.1.3
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 |
|---|---|---|---|---|
| tidybib-0.1.3.tar.gz | 10.6 kB | Without provenance | Details for tidybib-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tidybib-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for tidybib-0.1.3-py3-none-any.whl |
Total release size: 22.1 kB
Release files / tidybib-0.1.3.tar.gz
| Download URL | tidybib-0.1.3.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f33640610a3aa4241e17c4c79e311b949cd33050e340dad15d416d8d0c0ec87
|
|
BLAKE2b-256 checksum How to use checksums |
679dbd3fcc58b26b78fa31af90efe6817dcd76b057fcfaee512c8d3811cb2337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / tidybib-0.1.3-py3-none-any.whl
| Download URL | tidybib-0.1.3-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
053101d6e73a254d8d0e82b916069946e9102b6339cfcb7d81276cd77c1f6599
|
|
BLAKE2b-256 checksum How to use checksums |
fe4d12a83a21fa8929a4d8dee7bbd2ccc99b4e1059b0a8ba92632fb28c07e951
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for tidybib 0.1.3
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.