utility to check and format bibtex files
Project description
bbc
Synopsis
bbc
is a tiny utility that checks some basic properties of you bibtex files, orders the entries in an alphabetical order and style them in a uniform way.
Usage
bbc <bib_file> --output=<out_file>
The formated bibtex is printed in the <out_file>
file, while error messages on the standard error output.
Add the flag --add-todo
to assign a TODO
value to missing fields which are required for the particular types of entries:
bbc <bib_file> --output=<out_file> --add-todo
If you toggle option --try-fix
, it will try to find missing ISSN and other informations about journals (from DBpedia) or ISBN and other information for books (from Google Books).
How to install
- Clone this project.
- Using
pipx
you can install the utility from the main folder:
pipx install .
Prerequisities
This utility uses the following packages.
bibtexparser
to parse and print bibtexbeautifulsoup4
to scrape web pageslibisbn
to work ISBNs and Google BooksSPARQLWrapper
to query DBpediatermcolor
to have colored error messagespycountry
to query countries
License
The software is distributed under the BSD License.
Acknowledgments
This project is based on prettybib.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bbc-0.1.1.tar.gz
.
File metadata
- Download URL: bbc-0.1.1.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-22-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a47559083a87eb84c1b22c23a350366ed6a8b3c3a564794d2e44d6aac09e11a9 |
|
MD5 | 9b32b700f0813ba2b7405475a54675d7 |
|
BLAKE2b-256 | f6fefa2305dc50971c3394592994ddad80a688a1ceb027528e783d9a08169ae8 |
File details
Details for the file bbc-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: bbc-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-22-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e7e6920a26886e84df4537e8bc56d3e9d16474fc26470a40582f7136adb8a2a |
|
MD5 | 6ba513ac52dcce820ae30ecb760c069a |
|
BLAKE2b-256 | 90aa932c1a99cb487d621f1665f4b3a59dca78631b6e212c3037ca1bdda8d13d |