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

Uploaded Source

Built Distribution

tidybib-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tidybib-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 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.0.tar.gz
Algorithm Hash digest
SHA256 8d5754d2b6e3fd83a7f0843f6c1411c2072b302d2af427f6d1e4cae4ae335124
MD5 84cf5673df914645a46cd0b77ccf338d
BLAKE2b-256 bbd4626c255381c1da175983d23c5abfb2296616d564235630bc30439053ce78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tidybib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aadc0234d478eb07df529ac56af0b552bbb5c8d6c2cff9e9175ca66c58b248e7
MD5 c3b2f1c91bc4e250e76a7a987642ca52
BLAKE2b-256 794e20950a4bcd5600db3fa8f4fe6b6755dfd9c928a5dd0412bbf5f5b2d059d4

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