Bib2JSON is a simple Python tool for converting BibTeX files to JSON format. It maintains the structure and content of your bibliographic entries while making them accessible in a more versatile machine-readable format. Originally created by [Brian Rabern](https://github.com/brianrabern/bib2json).
Project description
Bib2JSON
Bib2JSON is a simple Python tool for converting BibTeX files to JSON format. It maintains the structure and content of your bibliographic entries while making them accessible in a more versatile machine-readable format.
Originally created by Brian Rabern, this package provides a Python library and command-line interface for BibTeX to JSON conversion.
Installation
pip install bib2json
Usage
Command Line
# Basic usage with explicit output file
bib2json input.bib output.json
# Basic usage with default output file (will create input.json)
bib2json input.bib
# Include original BibTeX in the JSON output
bib2json input.bib --include_bibtex
Python API
import bib2json
# Convert BibTeX to JSON
bib2json.convert_file("input.bib", "output.json")
# Include original BibTeX in the JSON output
bib2json.convert_file("input.bib", "output.json", include_bibtex=True)
Features
- Convert BibTeX files to JSON
- Option to retain the original BibTeX entries within the JSON output
- Simple command-line interface
- Programmatic API for integration with other Python code
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bib2json-0.1.0.tar.gz.
File metadata
- Download URL: bib2json-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304e50ba80ffa903b0921f75670914729b60d2b9bca49f210cd9d8fb5cade09f
|
|
| MD5 |
9dac9547958ac38869768f98ed00e28d
|
|
| BLAKE2b-256 |
9ea56ffdb701b6d83fa4e1177853c5b253d0ba3be6684ab54e72f098f61afa71
|
File details
Details for the file bib2json-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bib2json-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
923abdfab98003ee99bfb3e5d216a1b3c753a259794185abc7ed5187ece59717
|
|
| MD5 |
590a78e6462646117ce8a70503b2a075
|
|
| BLAKE2b-256 |
b60157d707c01c1205129758e39a6d67b36078bc5ec64bcb9122a902179c4d4c
|