Skip to main content

BibTeX formatter

Project description

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 | tidybib

This will produce the formatted contents on standard output, and no files are changed.

Acknowledgements

All of the hard work of extracting a grammar and parser from the BibTeX source code was done by aclements/biblib.

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

tidybib-0.1.2.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

tidybib-0.1.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file tidybib-0.1.2.tar.gz.

File metadata

  • Download URL: tidybib-0.1.2.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for tidybib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8fe6e78f34588b67d4e10751ca9018c95db6e269cf014e3221a633e95af5ee4d
MD5 fd56c16073bfc7c392632d209bce2593
BLAKE2b-256 bf5d1fa9bba51d6ee6466a01f84751123e0123293636165902a8dc851813d353

See more details on using hashes here.

File details

Details for the file tidybib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tidybib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for tidybib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 350808e37e5e0b9b109d8719847c44500543e0112acf3b59bc1afbf87e0ebd31
MD5 a8fa5169e260ab82abdad3ff5a042ab4
BLAKE2b-256 c4398a07c3bd92661c983a51be1be487e74153ff60c5a41c8e567d2a6c03e0c9

See more details on using hashes here.

Supported by

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