bib2x
Introduction
bib2x is a tool for parsing and processing BibTeX files.
bib2x is currently under development. The latest version is 0.4.0.
The current use cases are:
- Convert BibTeX-files to JSON
Examples
bib2x -i turing.bib -o turing.json -f json
Converts the BibTeX-file "turing.bib" into the JSON-file "turing.json" with the BibTeX entries.
bib2x -i turing.bib -o turing.html -f html
Converts the BibTeX-file "turing.bib" into a file named "turing.html" that contains a HTML list with the BibTeX entries.
Background
Being a somehow busy scientific coworker and a software guy, I wanted to render my publications for my web site.
For this purpose, I wrote BibPres, a commercial tool that uses JSON to store a publications list and JavaScript to render and interact with it.
bib2x is a rework of BibPres released as open source. Currently, only the parser is being ported as I want to change it so that it renders plain HTML, not a JSON file.
If you have any comments, ideas, or critics, please let me know.
License
bib2x is licensed under the BSD license.
Documentation
Running on the Command Line
bib2x is implemented in Python. It is started on the command line.
bib2x reads the BibTeX file defined using the --input <BIBTEX_FILE> option. It converts it to the format defined using the option --format <FORMAT> and saves it under the name defined using the option --output <FILE>. Currently, only "json" is available as destination format.
Examples
bib2x -i turing.bib -o turing.json
Converts the BibTeX-file "turing.bib" into the JSON-file "turing.json".
Command line arguments
The script can be started on the command line with the following options:
- --input <BIBTEX_FILE> / -i <BIBTEX_FILE>: The BibTeX file to load
- --output <FILE> / -o <FILE>: The file to write
- --format <FORMAT> / -f <FORMAT>: The type of file to write ['json']
- --help: Show a help message
- --version: Show the version information
Further Links
- A complete documentation is located at:
- Discussions are open at https://github.com/dkrajzew/bib2x/discussions
- The github repository is located at: https://github.com/dkrajzew/bib2x
- The issue tracker is located at: https://github.com/dkrajzew/bib2x/issues
- The PyPI page is located at: https://pypi.org/project/bib2x/
ChangeLog for bib2x
bib2x-0.4.0 (27.03.2023)
- Work on the documentation
- Added HTML output
- Further tests
bib2x-0.2.0 (08.03.2023)
- Initial version
Metadata
Release files for bib2x 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bib2x-0.4.2.tar.gz | 20.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bib2x-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.7 kB
Release files / bib2x-0.4.2.tar.gz
| Download URL | bib2x-0.4.2.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
581516c632db8d5a6a01d08f800aa9933d3d4efd4502ea827eb4032587392380
|
|
BLAKE2b-256 checksum How to use checksums |
a6cd5bd4b137dff14d32dc28bb1fd24e5a3939ca4476e46cfeea2b6e1ee352ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / bib2x-0.4.2-py3-none-any.whl
| Download URL | bib2x-0.4.2-py3-none-any.whl |
|---|---|
| Size | 26.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94ef1b3decfe2586f6390acf51b46ff37689320ee4a3f497ea144bc7d1e80229
|
|
BLAKE2b-256 checksum How to use checksums |
4a4d909314fe0ddcf2af1dace4f9c1b4e714b3b29b219319a541b9c198f2a63f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Security for bib2x 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.