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.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tidybib-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2a98284f6f6370dcba7d776818aedd96bd77f118000ec8b89c3bd50dd7727e82
MD5 963f7e075428197e732a733b53ba2c22
BLAKE2b-256 a1dc5fb3aefe38529f6ac3a5a4c56fff735fe019d6791d8366c58a88217dba79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tidybib-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9756b8c0e42db18b41dec71bba7b3be89dc1b808431a42689c047805723f5061
MD5 a71823a6a0f2b5d8f8945a9922e9833d
BLAKE2b-256 555d7c598296ee4c8330abbd2f262a2407d41bce35c9998b542c5d17ad592076

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